Returns a ArrayType if the TypeMirror represents an array or throws an IllegalArgumentException.
(TypeMirror maybeArrayType)
| 588 | * IllegalArgumentException}. |
| 589 | */ |
| 590 | public static ArrayType asArray(TypeMirror maybeArrayType) { |
| 591 | return maybeArrayType.accept(ArrayTypeVisitor.INSTANCE, null); |
| 592 | } |
| 593 | |
| 594 | private static final class ArrayTypeVisitor extends CastingTypeVisitor<ArrayType> { |
| 595 | private static final ArrayTypeVisitor INSTANCE = new ArrayTypeVisitor(); |
no test coverage detected