public class ObjectCreationExpression extends Expression
| Modifier and Type | Field and Description |
|---|---|
static TokenRole |
NEW_KEYWORD_ROLE |
MYSTERY_OFFSET, NULLAST_NODE_USED_FLAGS, flagsCHILD_ITERATOR| Constructor and Description |
|---|
ObjectCreationExpression(int offset,
AstType type) |
ObjectCreationExpression(int offset,
AstType type,
Expression... arguments) |
ObjectCreationExpression(int offset,
AstType type,
java.lang.Iterable<Expression> arguments) |
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
acceptVisitor(IAstVisitor<? super T,? extends R> visitor,
T data) |
AstNodeCollection<Expression> |
getArguments() |
JavaTokenNode |
getLeftParenthesisToken() |
JavaTokenNode |
getNewToken() |
JavaTokenNode |
getRightParenthesisToken() |
Expression |
getTarget() |
AstType |
getType() |
boolean |
matches(INode other,
Match match) |
void |
setTarget(Expression value) |
void |
setType(AstType type) |
clone, forPattern, getNodeType, getOffset, invoke, invoke, invoke, invoke, invoke, invoke, member, setOffsetaddChild, contains, contains, copyUserDataFrom, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getRole, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, match, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, toStringpublic static final TokenRole NEW_KEYWORD_ROLE
public ObjectCreationExpression(int offset,
AstType type)
public ObjectCreationExpression(int offset,
AstType type,
java.lang.Iterable<Expression> arguments)
public ObjectCreationExpression(int offset,
AstType type,
Expression... arguments)
public final Expression getTarget()
public final void setTarget(Expression value)
public final AstNodeCollection<Expression> getArguments()
public final JavaTokenNode getNewToken()
public final AstType getType()
public final void setType(AstType type)
public final JavaTokenNode getLeftParenthesisToken()
public final JavaTokenNode getRightParenthesisToken()
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
acceptVisitor in class AstNode