277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
|
# File 'lib/codercompanion/java/java.rb', line 277
def build
els = []
class_name = ''
privacy = ''
inherits_from = ''
elements.each do |e|
inherits_from = e.elements[0].build if e.respond_to? :inheritance
class_name = e.text_value if e.respond_to? :class_name
privacy = e.text_value if e.respond_to? :privacy
if e.respond_to? :class_element
e.elements[0].elements.each {|f| els.push(f.build) if f.respond_to? :build }
end
end
return {:type => "interface_definition", :value => class_name, :privacy => privacy, :inherits_from => inherits_from, :class_elements => els}
end
|