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, timesclone, 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, timesprivate 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)
JCallpublic JCall typeArg(java.lang.String type)
JCallpublic JCall typeArg(java.lang.Class<?> type)
JCallpublic JCall arg(JExpr expr)
JCallarg in interface JCallarg in interface JSimpleArgsexpr - the argument expressionpublic JType[] typeArguments()
JCalltypeArguments in interface JCallpublic JExpr[] arguments()
JSimpleArgsarguments in interface JCallarguments in interface JSimpleArgspublic JComment lineComment()
public JComment blockComment()
void writeTypeArgs(SourceFileWriter writer) throws java.io.IOException
java.io.IOExceptionpublic void write(SourceFileWriter writer) throws java.io.IOException