Uses of Class
com.sun.codemodel.JBlock
Packages that use JBlock
Package
Description
Library for generating Java source code
FieldRenderer and its implementation classes.
Provides the outline of the generated Java source code so that
additional processing (such as adding more annotations) can be
done on the generated code.
-
Uses of JBlock in com.sun.codemodel
Methods in com.sun.codemodel that return JBlockModifier and TypeMethodDescriptionJConditional._else()
Create a block to be executed by "else" branchJTryBlock._finally()
JConditional._then()
Return the block to be excuted by the "then" branchJBlock.add
(JStatement s) Adds a statement to this blockJBlock.assign
(JAssignmentTarget lhs, JExpression exp) Creates an assignment statement and adds it to this block.JBlock.assignPlus
(JAssignmentTarget lhs, JExpression exp) JBlock.block()
Create a sub-block and add it to this blockJCase.body()
JCatchBlock.body()
JDoLoop.body()
JForEach.body()
JForLoop.body()
JMethod.body()
Get the block that makes up body of this methodJTryBlock.body()
JWhileLoop.body()
JDefinedClass.init()
Creates, if necessary, and returns the static initializer for this class.JDefinedClass.instanceInit()
Creates, if necessary, and returns the instance initializer for this class. -
Uses of JBlock in com.sun.tools.xjc.generator.bean.field
Methods in com.sun.tools.xjc.generator.bean.field with parameters of type JBlock -
Uses of JBlock in com.sun.tools.xjc.generator.util
Methods in com.sun.tools.xjc.generator.util that return JBlockModifier and TypeMethodDescriptionprotected abstract JBlock
LazyBlockReference.create()
Called when a block needs to be created.BlockReference.get
(boolean create) ExistingBlockReference.get
(boolean create) LazyBlockReference.get
(boolean create) Constructors in com.sun.tools.xjc.generator.util with parameters of type JBlock -
Uses of JBlock in com.sun.tools.xjc.outline
Methods in com.sun.tools.xjc.outline with parameters of type JBlockModifier and TypeMethodDescriptionvoid
FieldAccessor.fromRawValue
(JBlock block, String uniqueName, JExpression $var) Sets the value of the field from the specified expression.void
FieldAccessor.toRawValue
(JBlock block, JVar $var) Dumps everything in this field into the given variable.void
FieldAccessor.unsetValues
(JBlock body) Generates a code fragment to remove any "set" value and move this field to the "unset" state.