Home | History | Annotate | Download | only in type

Lines Matching defs:arrayType

46  * To indicate that a type is an array, it gets wrapped in an ArrayType for every array level it has.
47 * So, int[][] becomes ArrayType(ArrayType(int)).
49 public final class ArrayType extends ReferenceType implements NodeWithAnnotations<ArrayType> {
76 public ArrayType(Type componentType, Origin origin, NodeList<AnnotationExpr> annotations) {
80 public ArrayType(Type type, AnnotationExpr... annotations) {
88 public ArrayType(TokenRange tokenRange, Type componentType, Origin origin, NodeList<AnnotationExpr> annotations) {
113 public ArrayType setComponentType(final Type componentType) {
116 return (ArrayType) this;
128 * right, mirroring the actual code. The type gets wrapped in ArrayTypes so that the outermost ArrayType corresponds
142 type = new ArrayType(tokenRange, type, pair.getOrigin(), pair.getAnnotations());
153 * Takes a type that may be an ArrayType. Unwraps ArrayTypes until the element type is found.
159 while (type instanceof ArrayType) {
160 ArrayType arrayType = (ArrayType) type;
161 arrayBracketPairs.add(new ArrayBracketPair(type.getTokenRange().orElse(null), arrayType.getOrigin(), arrayType.getAnnotations()));
162 type = arrayType.getComponentType();
169 * (unlike ArrayType.)
214 public ArrayType setAnnotations(NodeList<AnnotationExpr> annotations) {
215 return (ArrayType) super.setAnnotations(annotations);
224 public ArrayType setOrigin(final Origin origin) {
227 return (ArrayType) this;
249 public ArrayType clone() {
250 return (ArrayType) accept(new CloneVisitor(), null);
279 public ArrayType asArrayType() {
284 public void ifArrayType(Consumer<ArrayType> action) {
290 public Optional<ArrayType> toArrayType() {