Class: Cheri::Java::Builder::GenericClassBuilder

Inherits:
ClassBuilder show all
Defined in:
lib/cheri/java/builder/main.rb

Overview

ConstantResolver

Instance Method Summary collapse

Methods inherited from ClassBuilder

java_class

Methods inherited from BaseBuilder

#props, #resolve?, #run

Methods inherited from Builder::BaseBuilder

#run

Methods included from Builder::Builder

#args, #run, #sym

Methods included from Builder::Frame

#block, #ctx, #inspect, #object, #run

Constructor Details

#initialize(mod, type, ctx, sym, *args, &block) ⇒ GenericClassBuilder

TODO: eliminate ClassBuilder inheritance?



335
336
337
338
339
# File 'lib/cheri/java/builder/main.rb', line 335

def initialize(mod,type,ctx,sym,*args,&block)    
  super(ctx,sym,type.clazz,*args,&block)
  @mod = mod
  @type = type
end

Instance Method Details

#any?Boolean

Returns:

  • (Boolean)


349
350
351
# File 'lib/cheri/java/builder/main.rb', line 349

def any?
  @type.any?
end

#child?Boolean

Returns:

  • (Boolean)


346
347
348
# File 'lib/cheri/java/builder/main.rb', line 346

def child?
  @type.child?
end

#modObject



340
341
342
# File 'lib/cheri/java/builder/main.rb', line 340

def mod
  @mod  
end

#parent?Boolean

Returns:

  • (Boolean)


343
344
345
# File 'lib/cheri/java/builder/main.rb', line 343

def parent?
  @type.parent?  
end