Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
Modifier and Type | Class and Description |
---|---|
class |
JFieldVar
A field that can have a
JDocComment associated with it |
Modifier and Type | Field and Description |
---|---|
private JVar |
JForEach.loopVar |
private JVar |
JFieldRef.var
Variable to be accessed.
|
private JVar |
JCatchBlock.var |
private JVar |
JMethod.varParam
Variable parameter for this method's varargs declaration
introduced in J2SE 1.5
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<JVar> |
JMethod.params
List of parameters for this method's declaration
|
Modifier and Type | Method and Description |
---|---|
JVar |
JBlock.decl(int mods,
JType type,
java.lang.String name,
JExpression init)
Adds a local variable declaration to this block
|
JVar |
JBlock.decl(JType type,
java.lang.String name)
Adds a local variable declaration to this block
|
JVar |
JBlock.decl(JType type,
java.lang.String name,
JExpression init)
Adds a local variable declaration to this block
|
JVar |
JForLoop.init(int mods,
JType type,
java.lang.String var,
JExpression e) |
JVar |
JVar.init(JExpression init)
Initialize this variable
|
JVar |
JForLoop.init(JType type,
java.lang.String var,
JExpression e) |
JVar[] |
JMethod.listParams()
Returns all the parameters in an array.
|
JVar |
JMethod.listVarParam()
Returns the variable parameter
|
JVar |
JMethod.param(java.lang.Class<?> type,
java.lang.String name) |
JVar |
JMethod.param(int mods,
java.lang.Class<?> type,
java.lang.String name) |
JVar |
JMethod.param(int mods,
JType type,
java.lang.String name)
Add the specified variable to the list of parameters
for this method signature.
|
JVar |
JMethod.param(JType type,
java.lang.String name) |
JVar |
JCatchBlock.param(java.lang.String name) |
JVar |
JForEach.var()
Returns a reference to the loop variable.
|
JVar |
JMethod.varParam(java.lang.Class<?> type,
java.lang.String name) |
JVar |
JMethod.varParam(JType type,
java.lang.String name)
Add the specified variable argument to the list of parameters
for this method signature.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<JVar> |
JMethod.params()
Returns the list of variable of this method.
|
Modifier and Type | Method and Description |
---|---|
JCommentPart |
JDocComment.addParam(JVar param)
Append a text to an @param tag.
|
JFormatter |
JFormatter.b(JVar v)
Cause the JVar to generate source for itself
|
void |
JForLoop.init(JVar v,
JExpression e) |
static JFieldRef |
JExpr.ref(JExpression lhs,
JVar field) |
JFieldRef |
JExpression.ref(JVar field) |
JFieldRef |
JExpressionImpl.ref(JVar field) |
JFieldRef |
JClass.staticRef(JVar field)
Static field reference.
|
Constructor and Description |
---|
JFieldRef(JExpression object,
JVar v) |
JFieldRef(JGenerable object,
JVar var,
boolean explicitThis) |
JFieldRef(JType type,
JVar v) |