public final class JInvocation extends JExpressionImpl implements JStatement
Modifier and Type | Method and Description |
---|---|
JInvocation |
arg(JExpression arg)
Add an expression to this invocation's argument list
|
JInvocation |
arg(String v)
Adds a literal argument.
|
void |
generate(JFormatter f) |
JExpression[] |
listArgs()
Returns all arguments of the invocation.
|
void |
state(JFormatter f) |
public JInvocation arg(JExpression arg)
arg
- Argument to add to argument listpublic JInvocation arg(String v)
arg(JExpr.lit(v))
public JExpression[] listArgs()
public void generate(JFormatter f)
generate
in interface JGenerable
public void state(JFormatter f)
state
in interface JStatement
Copyright © 2019 JBoss by Red Hat. All rights reserved.