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.voidlistArgs()Returns all arguments of the invocation.voidstate(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:
generatein interfaceJGenerable
-
state
- Specified by:
statein interfaceJStatement
-