| Modifier and Type | Field and Description |
|---|---|
| private List | args
List of argument expressions for this method invocation |
| private boolean | |
| private JMethod | |
| private String | name
Name of the method to be invoked. |
| private JGenerable | object
Object expression upon which this method will be invoked, or null if this is a constructor invocation |
| private JType | type
If isConstructor==true, this field keeps the type to be created. |
| Access | Constructor and Description |
|---|---|
| pack-priv | JInvocation(JExpression
JExpression for the object upon which
the named method will be invoked,
or null if none object, String Name of method to invoke name)Invokes a method on an object. |
| pack-priv | |
| pack-priv | |
| pack-priv | |
| private | |
| private | |
| pack-priv | JInvocation(JType
Type of the object to be created. If this type is
an array type, added arguments are treated as array
initializer. Thus you can create an expression like
c)new int[]{1,2,3,4,5}.Invokes a constructor of an object (i.e., creates a new object.) |
| Modifier and Type | Method and Description |
|---|---|
| public JInvocation | arg(JExpression
Argument to add to argument list arg)Add an expression to this invocation's argument list |
| public JInvocation | |
| public void | |
| public JExpression[] | Returns: If there's no arguments, an empty array will be returned.Returns all arguments of the invocation. |
| public void |
| args | back to summary |
|---|---|
| private List<JExpression> args List of argument expressions for this method invocation | |
| isConstructor | back to summary |
|---|---|
| private boolean isConstructor | |
| method | back to summary |
|---|---|
| private JMethod method | |
| name | back to summary |
|---|---|
| private String name Name of the method to be invoked.
Either this field is set, or | |
| object | back to summary |
|---|---|
| private JGenerable object Object expression upon which this method will be invoked, or null if this is a constructor invocation | |
| type | back to summary |
|---|---|
| private JType type If isConstructor==true, this field keeps the type to be created. | |
| JInvocation | back to summary |
|---|---|
| pack-priv JInvocation(JExpression object, String name) Invokes a method on an object.
| |
| JInvocation | back to summary |
|---|---|
| pack-priv JInvocation(JExpression object, JMethod method) | |
| JInvocation | back to summary |
|---|---|
| pack-priv JInvocation(JClass type, String name) Invokes a static method on a class. | |
| JInvocation | back to summary |
|---|---|
| pack-priv JInvocation(JClass type, JMethod method) | |
| JInvocation | back to summary |
|---|---|
| private JInvocation(JGenerable object, String name) | |
| JInvocation | back to summary |
|---|---|
| private JInvocation(JGenerable object, JMethod method) | |
| JInvocation | back to summary |
|---|---|
| pack-priv JInvocation(JType c) Invokes a constructor of an object (i.e., creates a new object.)
| |
| arg | back to summary |
|---|---|
| public JInvocation arg(JExpression arg) Add an expression to this invocation's argument list
| |
| arg | back to summary |
|---|---|
| public JInvocation arg(String v) Adds a literal argument.
Short for | |
| generate | back to summary |
|---|---|
| public void generate(JFormatter f) Implements com.
| |
| listArgs | back to summary |
|---|---|
| public JExpression[] listArgs() Returns all arguments of the invocation.
| |
| state | back to summary |
|---|---|
| public void state(JFormatter f) Implements com.
| |