Package org.jboss.jdeparser
Interface JCall
- All Superinterfaces:
JExpr
,JSimpleArgs
- All Known Subinterfaces:
JAnonymousClassDef
A method or constructor call.
- Author:
- David M. Lloyd
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd an actual parameter argument to this call.JExpr[]
Get the arguments defined thus far.diamond()
Use the "diamond"<>
syntax to specify inferred type arguments.Add a type argument to this call.Add a type argument to this call.Add a type argument to this call.JType[]
Get the type arguments defined thus far.Methods inherited from interface org.jboss.jdeparser.JExpr
_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
-
Method Details
-
diamond
JCall diamond()Use the "diamond"<>
syntax to specify inferred type arguments.- Returns:
- this call
-
typeArg
Add a type argument to this call.- Parameters:
type
- the type to add- Returns:
- this call
-
typeArg
Add a type argument to this call.- Parameters:
type
- the type to add- Returns:
- this call
-
typeArg
Add a type argument to this call.- Parameters:
type
- the type to add- Returns:
- this call
-
arg
Add an actual parameter argument to this call.- Specified by:
arg
in interfaceJSimpleArgs
- Parameters:
expr
- the argument expression- Returns:
- this call
-
typeArguments
JType[] typeArguments()Get the type arguments defined thus far.- Returns:
- the type arguments
-
arguments
JExpr[] arguments()Description copied from interface:JSimpleArgs
Get the arguments defined thus far.- Specified by:
arguments
in interfaceJSimpleArgs
- Returns:
- the arguments
-