new int[5][4][][] or new int[][]{{1},{2,3}}.
| Modifier and Type | Field and Description |
|---|---|
| private Type | |
| private ArrayInitializerExpr | |
| private NodeList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ArrayCreationExpr(Type elementType, NodeList<ArrayCreationLevel> levels, ArrayInitializerExpr initializer)
|
| public | |
| public | ArrayCreationExpr(TokenRange tokenRange, Type elementType, NodeList<ArrayCreationLevel> levels, ArrayInitializerExpr initializer)
This constructor is used by the parser and is considered private. |
| Modifier and Type | Method and Description |
|---|---|
| public <R, A> R | accept(final GenericVisitor<R, A>
the visitor implementation v, final A the argument passed to the visitor (of type A) arg)Implements com. |
| public <A> void | accept(final VoidVisitor<A>
the visitor implementation v, final A any value relevant for the visitor (of type A) arg)Implements com. |
| public ArrayCreationExpr | |
| public ArrayCreationExpr | clone()
Creates and returns a copy of this object.
|
| public Type | |
| public Type | |
| public Optional | |
| public NodeList | |
| public ArrayCreationExprMetaModel | |
| public void | |
| public boolean | |
| public boolean | |
| public ArrayCreationExpr | |
| public boolean | replace(Node node, Node replacementNode)
Overrides com. |
| public ArrayCreationExpr | |
| public ArrayCreationExpr | Returns: thisthe type typeClass)Sets this type to this class and try to import it to the |
| public ArrayCreationExpr | |
| public ArrayCreationExpr | Returns: this, the ArrayCreationExprthe initializer, can be null initializer)Sets the initializer |
| public ArrayCreationExpr | |
| public Optional |
| elementType | back to summary |
|---|---|
| private Type elementType | |
| initializer | back to summary |
|---|---|
| private ArrayInitializerExpr initializer
| |
| levels | back to summary |
|---|---|
| private NodeList<ArrayCreationLevel> levels
| |
| ArrayCreationExpr | back to summary |
|---|---|
| public ArrayCreationExpr() | |
| ArrayCreationExpr | back to summary |
|---|---|
public ArrayCreationExpr(Type elementType, NodeList<ArrayCreationLevel> levels, ArrayInitializerExpr initializer)
| |
| ArrayCreationExpr | back to summary |
|---|---|
| public ArrayCreationExpr(Type elementType) | |
| ArrayCreationExpr | back to summary |
|---|---|
| public ArrayCreationExpr(TokenRange tokenRange, Type elementType, NodeList<ArrayCreationLevel> levels, ArrayInitializerExpr initializer) This constructor is used by the parser and is considered private.
| |
| accept | back to summary |
|---|---|
| public <R, A> R accept(final GenericVisitor<R, A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| accept | back to summary |
|---|---|
| public <A> void accept(final VoidVisitor<A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| asArrayCreationExpr | back to summary |
|---|---|
| public ArrayCreationExpr asArrayCreationExpr() Overrides com.
| |
| clone | back to summary |
|---|---|
| public ArrayCreationExpr clone() Overrides com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| createdType | back to summary |
|---|---|
| public Type createdType() Takes the element type and wraps it in an ArrayType for every array creation level. | |
| getElementType | back to summary |
|---|---|
public Type getElementType()
| |
| getInitializer | back to summary |
|---|---|
public Optional
| |
| getLevels | back to summary |
|---|---|
public NodeList
| |
| getMetaModel | back to summary |
|---|---|
| public ArrayCreationExprMetaModel getMetaModel() Overrides com.
| |
| ifArrayCreationExpr | back to summary |
|---|---|
| public void ifArrayCreationExpr(Consumer<ArrayCreationExpr> action) Overrides com.
| |
| isArrayCreationExpr | back to summary |
|---|---|
| public boolean isArrayCreationExpr() Overrides com.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| removeInitializer | back to summary |
|---|---|
public ArrayCreationExpr removeInitializer()
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| setElementType | back to summary |
|---|---|
public ArrayCreationExpr setElementType(final Type elementType)
| |
| setElementType | back to summary |
|---|---|
| public ArrayCreationExpr setElementType(Class<?> typeClass) Sets this type to this class and try to import it to the
| |
| setElementType | back to summary |
|---|---|
| public ArrayCreationExpr setElementType(final String type) | |
| setInitializer | back to summary |
|---|---|
| public ArrayCreationExpr setInitializer(final ArrayInitializerExpr initializer) Sets the initializer
| |
| setLevels | back to summary |
|---|---|
public ArrayCreationExpr setLevels(final NodeList<ArrayCreationLevel> levels)
| |
| toArrayCreationExpr | back to summary |
|---|---|
| public Optional Overrides com.
| |