Class: Autoproj::PackageManifest::BaseLoader Private

Inherits:
Object
  • Object
show all
Includes:
REXML::StreamListener
Defined in:
lib/autoproj/package_manifest.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

REXML stream parser object used to filter nested tags

Direct Known Subclasses

Loader

Instance Method Summary collapse

Constructor Details

#initializeBaseLoader

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of BaseLoader.



157
158
159
# File 'lib/autoproj/package_manifest.rb', line 157

def initialize
    @tag_level = 0
end

Instance Method Details

#tag_end(name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



165
166
167
# File 'lib/autoproj/package_manifest.rb', line 165

def tag_end(name)
    toplevel_tag_end(name) if (@tag_level -= 1) == 1
end

#tag_start(name, attributes) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



161
162
163
# File 'lib/autoproj/package_manifest.rb', line 161

def tag_start(name, attributes)
    toplevel_tag_start(name, attributes) if (@tag_level += 1) == 2
end

#text(text) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



169
170
171
172
# File 'lib/autoproj/package_manifest.rb', line 169

def text(text)
    @tag_text = @tag_text.dup
    @tag_text << text if @tag_text
end