| Package | Description |
|---|---|
| com.helger.jcodemodel |
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 | Method and Description |
|---|---|
JVar |
JBlock.decl(AbstractJType type,
String name)
Adds a local variable declaration to this block
|
JVar |
JBlock.decl(AbstractJType type,
String name,
IJExpression init)
Adds a local variable declaration to this block
|
JVar |
JBlock.decl(int mods,
AbstractJType type,
String name)
Adds a local variable declaration to this block
|
JVar |
JBlock.decl(int mods,
AbstractJType type,
String name,
IJExpression init)
Adds a local variable declaration to this block
|
JVar |
JForLoop.init(AbstractJType aType,
String sVarName,
IJExpression aInitExpr) |
JVar |
JVar.init(IJExpression aInitExpr)
Initialize this variable
|
JVar |
JForLoop.init(int mods,
AbstractJType aType,
String sVarName,
IJExpression aInitExpr) |
JVar[] |
JMethod.listParams()
Returns all the parameters in an array.
|
JVar |
JMethod.listVarParam()
Deprecated.
Use
JMethod.varParam() instead. |
JVar |
JCatchBlock.param() |
JVar |
JMethod.param(AbstractJType type,
String name) |
JVar |
JMethod.param(Class<?> type,
String name) |
JVar |
JMethod.param(int mods,
AbstractJType type,
String name)
Add the specified variable to the list of parameters for this method
signature.
|
JVar |
JMethod.param(int mods,
Class<?> type,
String name) |
JVar |
JCatchBlock.param(String name) |
JVar |
JMethod.paramAtIndex(int index) |
JVar |
JForEach.var() |
JVar |
JFieldRef.var() |
JVar |
JMethod.varParam() |
JVar |
JMethod.varParam(AbstractJType type,
String name)
Add the specified variable argument to the list of parameters for this
method signature.
|
JVar |
JMethod.varParam(Class<?> type,
String name)
Add the specified variable argument to the list of parameters for this
method signature.
|
JVar |
JMethod.varParam(int mods,
AbstractJType type,
String name)
Add the specified variable argument to the list of parameters for this
method signature.
|
JVar |
JMethod.varParam(int mods,
Class<?> type,
String name)
Add the specified variable argument to the list of parameters for this
method signature.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
JCommentPart |
JDocComment.getParam(JVar param) |
void |
JForLoop.init(JVar aVar,
IJExpression aRhs) |
JBlock |
JBlock.insertBefore(JVar var,
Object before) |
static JFieldRef |
JExpr.ref(IJExpression lhs,
JVar field) |
static JFieldRef |
JExpr.ref(JVar field) |
JFieldRef |
IJExpression.ref(JVar field) |
JFieldRef |
AbstractJExpressionImpl.ref(JVar field) |
static JFieldRef |
JExpr.refthis(IJExpression lhs,
JVar field) |
static JFieldRef |
JExpr.refthis(JVar field) |
JCommentPart |
JDocComment.removeParam(JVar param) |
JFieldRef |
AbstractJClass.staticRef(JVar aField)
Static field reference.
|
JFormatter |
JFormatter.var(JVar v)
Cause the
JVar to generate source for itself |
| Constructor and Description |
|---|
JFieldRef(AbstractJType type,
JVar var)
Static field reference.
|
JFieldRef(IJExpression object,
JVar var) |
JFieldRef(IJGenerable object,
JVar var,
boolean explicitThis) |
Copyright © 2013–2015 Philip Helger. All rights reserved.