public class ArrayCreationNode extends Node
new type [1][2]
new type [] = { expr1, expr2, ... }
| Modifier and Type | Field and Description |
|---|---|
protected List<Node> |
dimensions |
protected List<Node> |
initializers |
protected @Nullable NewArrayTree |
tree |
| Constructor and Description |
|---|
ArrayCreationNode(@Nullable NewArrayTree tree,
TypeMirror type,
List<Node> dimensions,
List<Node> initializers) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(NodeVisitor<R,P> visitor,
P p)
Accept method of the visitor pattern
|
boolean |
equals(Object obj) |
Node |
getDimension(int i) |
List<Node> |
getDimensions() |
Node |
getInitializer(int i) |
List<Node> |
getInitializers() |
Collection<Node> |
getOperands() |
Tree |
getTree()
Returns the
Tree in the abstract syntax tree, or
null if no corresponding tree exists. |
int |
hashCode() |
String |
toString() |
getAssignmentContext, getBlock, getInSource, getTransitiveOperands, getType, isLValue, setAssignmentContext, setBlock, setInSource, setLValueprotected @Nullable NewArrayTree tree
public ArrayCreationNode(@Nullable NewArrayTree tree, TypeMirror type, List<Node> dimensions, List<Node> initializers)
public Node getDimension(int i)
public Node getInitializer(int i)
public Tree getTree()
NodeTree in the abstract syntax tree, or
null if no corresponding tree exists. For instance, this is
the case for an ImplicitThisLiteralNode.public <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Nodepublic Collection<Node> getOperands()
getOperands in class NodeNodes of this
Node.