Class: Cheri::Java::Builder::ClassBuilder
- Inherits:
-
BaseBuilder
- Object
- Builder::AbstractBuilder
- Builder::BaseBuilder
- BaseBuilder
- Cheri::Java::Builder::ClassBuilder
- Defined in:
- lib/cheri/java/builder/main.rb
Overview
BaseBuilder
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ctx, sym, clazz, *args, &block) ⇒ ClassBuilder
constructor
A new instance of ClassBuilder.
Methods inherited from BaseBuilder
Methods inherited from Builder::BaseBuilder
Methods included from Builder::Builder
#args, #child?, #parent?, #run, #sym
Methods included from Builder::Frame
#any?, #block, #child?, #ctx, #inspect, #mod, #object, #parent?, #run
Constructor Details
#initialize(ctx, sym, clazz, *args, &block) ⇒ ClassBuilder
Returns a new instance of ClassBuilder.
103 104 105 106 107 108 109 110 111 |
# File 'lib/cheri/java/builder/main.rb', line 103 def initialize(ctx,sym,clazz,*args,&block) super(ctx,sym,*args,&block) @clazz = clazz # TODO: I don't know if we want this as default... # *ANSWER* yes, because a :SYMBOL will never be a valid Java arg, # and doing it this way simplifies adding later Java types and constants. # The first simple_resolve check is cheap, so this won't hurt performance @resolve = true end |
Class Method Details
.java_class ⇒ Object
115 116 117 |
# File 'lib/cheri/java/builder/main.rb', line 115 def @obj.java_class self.class.java_class end |