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.



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

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.



173
174
175
# File 'lib/autoproj/package_manifest.rb', line 173

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.



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

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.



177
178
179
180
# File 'lib/autoproj/package_manifest.rb', line 177

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