Class: CoderCompanion::Java::SourceFile2

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/codercompanion/java/java.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



49
50
51
52
53
54
55
56
57
58
# File 'lib/codercompanion/java/java.rb', line 49

def build
    els = []
    elements.each do |e|
        next unless e and e.elements
        e.elements.each do |inner_e|
            els.push(inner_e.elements.first.build) if inner_e.respond_to?(:class_definition)
        end
    end
    return els
end