Package com.sun.codemodel
Class JInvocation
java.lang.Object
com.sun.codemodel.JExpressionImpl
com.sun.codemodel.JInvocation
- All Implemented Interfaces:
JExpression
,JGenerable
,JStatement
JMethod invocation
-
Method Summary
Modifier and TypeMethodDescriptionarg
(JExpression arg) Add an expression to this invocation's argument listAdds a literal argument.void
listArgs()
Returns all arguments of the invocation.void
state
(JFormatter f)
-
Method Details
-
arg
Add an expression to this invocation's argument list- Parameters:
arg
- Argument to add to argument list
-
arg
Adds a literal argument. Short forarg(JExpr.lit(v))
-
listArgs
Returns all arguments of the invocation.- Returns:
- If there's no arguments, an empty array will be returned.
-
generate
- Specified by:
generate
in interfaceJGenerable
-
state
- Specified by:
state
in interfaceJStatement
-