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>
args
private BasicJCommentable
commentable
private 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 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(java.lang.String type)
Add a type argument to this call.JCall
typeArg(JType 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)
-
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:JCall
Use the "diamond"<>
syntax to specify inferred type arguments.
-
typeArg
public JCall typeArg(JType type)
Description copied from interface:JCall
Add a type argument to this call.
-
typeArg
public JCall typeArg(java.lang.String type)
Description copied from interface:JCall
Add a type argument to this call.
-
typeArg
public JCall typeArg(java.lang.Class<?> type)
Description copied from interface:JCall
Add a type argument to this call.
-
arg
public JCall arg(JExpr expr)
Description copied from interface:JCall
Add an actual parameter argument to this call.- Specified by:
arg
in interfaceJCall
- Specified by:
arg
in interfaceJSimpleArgs
- Parameters:
expr
- the argument expression- Returns:
- this call
-
typeArguments
public JType[] typeArguments()
Description copied from interface:JCall
Get the type arguments defined thus far.- Specified by:
typeArguments
in interfaceJCall
- Returns:
- the type arguments
-
arguments
public JExpr[] arguments()
Description copied from interface:JSimpleArgs
Get the arguments defined thus far.- Specified by:
arguments
in interfaceJCall
- Specified by:
arguments
in 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
-
-