MCPcopy Create free account
hub / github.com/google/auto / asArray

Method asArray

common/src/main/java/com/google/auto/common/MoreTypes.java:590–592  ·  view source on GitHub ↗

Returns a ArrayType if the TypeMirror represents an array or throws an IllegalArgumentException.

(TypeMirror maybeArrayType)

Source from the content-addressed store, hash-verified

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();

Callers 9

visitArrayMethod · 0.95
validateClassValuesMethod · 0.95
parameterTypeStringMethod · 0.95
checkReturnTypeMethod · 0.95
compatibleTypesMethod · 0.95
getComponentTypeMethod · 0.95
formatMethod · 0.95
signatureEncodingMethod · 0.80

Calls 1

acceptMethod · 0.45

Tested by

no test coverage detected