public interface JCall extends JExpr, JSimpleArgs
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.
|
JCall |
diamond()
Use the "diamond"
<> syntax to specify inferred type arguments. |
JCall |
typeArg(Class<?> type)
Add a type argument to this call.
|
JCall |
typeArg(JType type)
Add a type argument to this call.
|
JCall |
typeArg(String type)
Add a type argument to this call.
|
JType[] |
typeArguments()
Get the type arguments defined thus far.
|
_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
JCall diamond()
<>
syntax to specify inferred type arguments.JCall typeArg(JType type)
type
- the type to addJCall typeArg(String type)
type
- the type to addJCall typeArg(Class<?> type)
type
- the type to addJCall arg(JExpr expr)
arg
in interface JSimpleArgs
expr
- the argument expressionJType[] typeArguments()
JExpr[] arguments()
JSimpleArgs
arguments
in interface JSimpleArgs
Copyright © 2016. All rights reserved.