Package org.jboss.jdeparser
Class AbstractJCall
- java.lang.Object
-
- org.jboss.jdeparser.AbstractJExpr
-
- org.jboss.jdeparser.AbstractJCall
-
- All Implemented Interfaces:
AllowedStatementExpression,JCall,JExpr,JSimpleArgs,Writable
- Direct Known Subclasses:
AbstractMethodJCall,ImplJAnonymousClassDef,KeywordJCall,NewJCall
abstract class AbstractJCall extends AbstractJExpr implements JCall, AllowedStatementExpression
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<AbstractJExpr>argsprivate BasicJCommentablecommentableprivate java.util.ArrayList<AbstractJType>typeArgs
-
Constructor Summary
Constructors Constructor Description AbstractJCall(int prec)
-
Method Summary
All Methods Instance Methods Concrete 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.JCommentblockComment()JCalldiamond()Use the "diamond"<>syntax to specify inferred type arguments.JCommentlineComment()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.voidwrite(SourceFileWriter writer)(package private) voidwriteTypeArgs(SourceFileWriter writer)-
Methods inherited from class org.jboss.jdeparser.AbstractJExpr
_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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Field Detail
-
typeArgs
private java.util.ArrayList<AbstractJType> typeArgs
-
args
private java.util.ArrayList<AbstractJExpr> args
-
commentable
private BasicJCommentable commentable
-
-
Method Detail
-
diamond
public JCall diamond()
Description copied from interface:JCallUse the "diamond"<>syntax to specify inferred type arguments.
-
typeArg
public JCall typeArg(JType type)
Description copied from interface:JCallAdd a type argument to this call.
-
typeArg
public JCall typeArg(java.lang.String type)
Description copied from interface:JCallAdd a type argument to this call.
-
typeArg
public JCall typeArg(java.lang.Class<?> type)
Description copied from interface:JCallAdd a type argument to this call.
-
arg
public JCall arg(JExpr expr)
Description copied from interface:JCallAdd an actual parameter argument to this call.- Specified by:
argin interfaceJCall- Specified by:
argin interfaceJSimpleArgs- Parameters:
expr- the argument expression- Returns:
- this call
-
typeArguments
public JType[] typeArguments()
Description copied from interface:JCallGet the type arguments defined thus far.- Specified by:
typeArgumentsin interfaceJCall- Returns:
- the type arguments
-
arguments
public JExpr[] arguments()
Description copied from interface:JSimpleArgsGet the arguments defined thus far.- Specified by:
argumentsin interfaceJCall- Specified by:
argumentsin interfaceJSimpleArgs- Returns:
- the arguments
-
lineComment
public JComment lineComment()
-
blockComment
public JComment blockComment()
-
writeTypeArgs
void writeTypeArgs(SourceFileWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(SourceFileWriter writer) throws java.io.IOException
-
-