com.sun.tools.xjc.generator.util
Class LazyBlockReference
java.lang.Object
com.sun.tools.xjc.generator.util.LazyBlockReference
- All Implemented Interfaces:
- BlockReference
public abstract class LazyBlockReference
- extends Object
- implements BlockReference
Lazy block reference.
Method Summary |
protected abstract com.sun.codemodel.JBlock |
create()
Called when a block needs to be created. |
com.sun.codemodel.JBlock |
get(boolean create)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyBlockReference
public LazyBlockReference()
create
protected abstract com.sun.codemodel.JBlock create()
- Called when a block needs to be created.
Only called once in the whole life time of this object.
get
public com.sun.codemodel.JBlock get(boolean create)
- Specified by:
get
in interface BlockReference
- Parameters:
create
- If false, the method will return null if the block is
not yet created.