Package org.jboss.jdeparser
Interface JCall
-
- All Superinterfaces:
JExpr,JSimpleArgs
- All Known Subinterfaces:
JAnonymousClassDef
- All Known Implementing Classes:
AbstractJCall,AbstractMethodJCall,DirectJCall,ImplJAnonymousClassDef,InnerJAnonymousClassDef,InnerNewJCall,InstanceJCall,KeywordJCall,NewJCall,StaticJCall
public interface JCall extends JExpr, JSimpleArgs
A method or constructor call.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JCallarg(JExpr expr)Add an actual parameter argument to this call.JExpr[]arguments()Get the arguments defined thus far.JCalldiamond()Use the "diamond"<>syntax to specify inferred type arguments.JCalltypeArg(java.lang.Class<?> type)Add a type argument to this call.JCalltypeArg(java.lang.String type)Add a type argument to this call.JCalltypeArg(JType type)Add a type argument to this call.JType[]typeArguments()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 Detail
-
diamond
JCall diamond()
Use the "diamond"<>syntax to specify inferred type arguments.- Returns:
- this call
-
typeArg
JCall typeArg(JType type)
Add a type argument to this call.- Parameters:
type- the type to add- Returns:
- this call
-
typeArg
JCall typeArg(java.lang.String type)
Add a type argument to this call.- Parameters:
type- the type to add- Returns:
- this call
-
typeArg
JCall typeArg(java.lang.Class<?> type)
Add a type argument to this call.- Parameters:
type- the type to add- Returns:
- this call
-
arg
JCall arg(JExpr expr)
Add an actual parameter argument to this call.- Specified by:
argin 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:JSimpleArgsGet the arguments defined thus far.- Specified by:
argumentsin interfaceJSimpleArgs- Returns:
- the arguments
-
-