Home | History | Annotate | Download | only in type

Lines Matching defs:arrayType

16  * To indicate that a type is an array, it gets wrapped in an ArrayType for every array level it has.
17 * So, int[][] becomes ArrayType(ArrayType(int)).
19 public class ArrayType extends ReferenceType<ArrayType> implements NodeWithAnnotations<ArrayType> {
22 public ArrayType(Type componentType, List<AnnotationExpr> annotations) {
27 public ArrayType(Range range, Type componentType, List<AnnotationExpr> annotations) {
45 public ArrayType setComponentType(final Type type) {
53 * The type gets wrapped in ArrayTypes so that the outermost ArrayType corresponds to the rightmost ArrayBracketPair.
61 type = new ArrayType(type, arrayBracketPairList.get(j).getAnnotations());
69 * Takes a type that may be an ArrayType. Unwraps ArrayTypes until the element type is found.
75 while (type instanceof ArrayType) {
76 ArrayType arrayType = (ArrayType) type;
77 arrayBracketPairs.add(new ArrayBracketPair(Range.UNKNOWN, arrayType.getAnnotations()));
78 type = arrayType.getComponentType();
83 public static ArrayType arrayOf(Type type, AnnotationExpr... annotations) {
84 return new ArrayType(type, Arrays.asList(annotations));