| Modifier and Type | Class and Description |
|---|---|
| public static class | ArrayType.
Helper class that stores information about a pair of brackets in a non-recursive way (unlike ArrayType.) |
| public static enum | ArrayType.
The origin of a pair of array brackets []. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | ArrayType(TokenRange tokenRange, Type componentType, ArrayType.
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 ArrayType | |
| public String | |
| public ArrayType | clone()
Overrides com. |
| public Type | |
| public ArrayTypeMetaModel | |
| public ArrayType. | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | replace(Node node, Node replacementNode)
Overrides com. |
| public ResolvedArrayType | resolve()
Implements abstract com. Implements com. |
| public ArrayType | setAnnotations(NodeList<AnnotationExpr> annotations)
Overrides com. Implements com. |
| public ArrayType | |
| public ArrayType | |
| public Optional | |
| public static Pair | Returns: a pair of the element type, and the unwrapped ArrayTypes, if any.Takes a type that may be an ArrayType. |
| public static Type | wrapInArrayTypes(Type type, List<ArrayType.
Takes lists of arrayBracketPairs, assumes the lists are ordered left to right and the pairs are ordered left to right, mirroring the actual code. |
| componentType | back to summary |
|---|---|
| private Type componentType | |
| origin | back to summary |
|---|---|
| private ArrayType. | |
| ArrayType | back to summary |
|---|---|
public ArrayType(Type componentType, ArrayType.
| |
| ArrayType | back to summary |
|---|---|
| public ArrayType(Type type, AnnotationExpr... annotations) | |
| ArrayType | back to summary |
|---|---|
| public ArrayType(TokenRange tokenRange, Type componentType, ArrayType. 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.
| |
| asArrayType | back to summary |
|---|---|
| public ArrayType asArrayType() Overrides com.
| |
| asString | back to summary |
|---|---|
| public String asString() Implements abstract com.
| |
| clone | back to summary |
|---|---|
| public ArrayType 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
| |
| getComponentType | back to summary |
|---|---|
public Type getComponentType()
| |
| getMetaModel | back to summary |
|---|---|
| public ArrayTypeMetaModel getMetaModel() Overrides com.
| |
| getOrigin | back to summary |
|---|---|
public ArrayType.
| |
| ifArrayType | back to summary |
|---|---|
| public void ifArrayType(Consumer<ArrayType> action) Overrides com.
| |
| isArrayType | back to summary |
|---|---|
| public boolean isArrayType() Overrides com.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| resolve | back to summary |
|---|---|
| public ResolvedArrayType resolve() Implements abstract com. Implements com.
| |
| setAnnotations | back to summary |
|---|---|
| public ArrayType setAnnotations(NodeList<AnnotationExpr> annotations) Overrides com. Implements com.
| |
| setComponentType | back to summary |
|---|---|
public ArrayType setComponentType(final Type componentType)
| |
| setOrigin | back to summary |
|---|---|
public ArrayType setOrigin(final ArrayType.
| |
| toArrayType | back to summary |
|---|---|
| public Optional Overrides com.
| |
| unwrapArrayTypes | back to summary |
|---|---|
| public static Pair Takes a type that may be an ArrayType. Unwraps ArrayTypes until the element type is found.
| |
| wrapInArrayTypes | back to summary |
|---|---|
| public static Type wrapInArrayTypes(Type type, List<ArrayType. Takes lists of arrayBracketPairs, assumes the lists are ordered left to right and the pairs are ordered left to right, mirroring the actual code. The type gets wrapped in ArrayTypes so that the outermost ArrayType corresponds to the rightmost ArrayBracketPair.
| |
| Modifier and Type | Field and Description |
|---|---|
| private NodeList | |
| private ArrayType. | |
| private TokenRange |
| Access | Constructor and Description |
|---|---|
| public | ArrayBracketPair(TokenRange tokenRange, ArrayType.
|
| Modifier and Type | Method and Description |
|---|---|
| public NodeList | |
| public ArrayType. | |
| public Optional | |
| public ArrayType. | |
| public ArrayType. | |
| public ArrayType. |
| annotations | back to summary |
|---|---|
| private NodeList<AnnotationExpr> annotations | |
| origin | back to summary |
|---|---|
| private ArrayType. | |
| tokenRange | back to summary |
|---|---|
| private TokenRange tokenRange | |
| ArrayBracketPair | back to summary |
|---|---|
| public ArrayBracketPair(TokenRange tokenRange, ArrayType. | |
| getAnnotations | back to summary |
|---|---|
| public NodeList | |
| getOrigin | back to summary |
|---|---|
| public ArrayType. | |
| getTokenRange | back to summary |
|---|---|
| public Optional | |
| setAnnotations | back to summary |
|---|---|
| public ArrayType. | |
| setOrigin | back to summary |
|---|---|
| public ArrayType. | |
| setTokenRange | back to summary |
|---|---|
| public ArrayType. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ArrayType. | NAME
The [] were found on the name, like "int a[]" or "String abc()[][]" |
| public static final ArrayType. | TYPE
The [] were found on the type, like "int[] a" or "String[][] abc()" |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ArrayType. | |
| public static ArrayType. |
| NAME | back to summary |
|---|---|
| public static final ArrayType. The [] were found on the name, like "int a[]" or "String abc()[][]" | |
| TYPE | back to summary |
|---|---|
| public static final ArrayType. The [] were found on the type, like "int[] a" or "String[][] abc()" | |
| Origin | back to summary |
|---|---|
| private Origin() | |
| valueOf | back to summary |
|---|---|
| public static ArrayType. | |
| values | back to summary |
|---|---|
| public static ArrayType. | |