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

Method asNoType

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

Returns a NoType if the TypeMirror represents an non-type such as void, or package, etc. or throws an IllegalArgumentException.

(TypeMirror maybeNoType)

Source from the content-addressed store, hash-verified

693 * package, etc. or throws an {@link IllegalArgumentException}.
694 */
695 public static NoType asNoType(TypeMirror maybeNoType) {
696 return maybeNoType.accept(NoTypeVisitor.INSTANCE, null);
697 }
698
699 private static final class NoTypeVisitor extends CastingTypeVisitor<NoType> {
700 private static final NoTypeVisitor INSTANCE = new NoTypeVisitor();

Callers

nothing calls this directly

Calls 1

acceptMethod · 0.45

Tested by

no test coverage detected