abstract class AbstractJCall extends AbstractJExpr implements JCall, AllowedStatementExpression
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<AbstractJExpr> |
args |
private BasicJCommentable |
commentable |
private java.util.ArrayList<AbstractJType> |
typeArgs |
Constructor and Description |
---|
AbstractJCall(int prec) |
Modifier and Type | Method and Description |
---|---|
JCall |
arg(JExpr expr)
Add an actual parameter argument to this call.
|
JExpr[] |
arguments()
Get the arguments defined thus far.
|
JComment |
blockComment() |
JCall |
diamond()
Use the "diamond"
<> syntax to specify inferred type arguments. |
JComment |
lineComment() |
JCall |
typeArg(java.lang.Class<?> type)
Add a type argument to this call.
|
JCall |
typeArg(JType type)
Add a type argument to this call.
|
JCall |
typeArg(java.lang.String type)
Add a type argument to this call.
|
JType[] |
typeArguments()
Get the type arguments defined thus far.
|
void |
write(SourceFileWriter writer) |
(package private) void |
writeTypeArgs(SourceFileWriter writer) |
_instanceof, _instanceof, _instanceof, _new, _new, _new, _newAnon, _newAnon, _newAnon, $v, and, band, bor, bxor, call, cast, cast, cast, comp, cond, div, eq, field, ge, gt, idx, idx, le, length, lshr, lt, minus, mod, ne, neg, not, of, or, paren, plus, prec, shl, shr, times
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_instanceof, _instanceof, _instanceof, _new, _new, _new, _newAnon, _newAnon, _newAnon, $v, and, band, bor, bxor, call, cast, cast, cast, comp, cond, div, eq, field, ge, gt, idx, idx, le, length, lshr, lt, minus, mod, ne, neg, not, or, paren, plus, shl, shr, times
private java.util.ArrayList<AbstractJType> typeArgs
private java.util.ArrayList<AbstractJExpr> args
private BasicJCommentable commentable
public JCall diamond()
JCall
<>
syntax to specify inferred type arguments.public JCall typeArg(JType type)
JCall
public JCall typeArg(java.lang.String type)
JCall
public JCall typeArg(java.lang.Class<?> type)
JCall
public JCall arg(JExpr expr)
JCall
arg
in interface JCall
arg
in interface JSimpleArgs
expr
- the argument expressionpublic JType[] typeArguments()
JCall
typeArguments
in interface JCall
public JExpr[] arguments()
JSimpleArgs
arguments
in interface JCall
arguments
in interface JSimpleArgs
public JComment lineComment()
public JComment blockComment()
void writeTypeArgs(SourceFileWriter writer) throws java.io.IOException
java.io.IOException
public void write(SourceFileWriter writer) throws java.io.IOException