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

Method asError

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

Returns a ExecutableType if the TypeMirror represents an executable type such as may result from missing code, or bad compiles or throws an IllegalArgumentException.

(TypeMirror maybeErrorType)

Source from the content-addressed store, hash-verified

630 * as may result from missing code, or bad compiles or throws an {@link IllegalArgumentException}.
631 */
632 public static ErrorType asError(TypeMirror maybeErrorType) {
633 return maybeErrorType.accept(ErrorTypeVisitor.INSTANCE, null);
634 }
635
636 private static final class ErrorTypeVisitor extends CastingTypeVisitor<ErrorType> {
637 private static final ErrorTypeVisitor INSTANCE = new ErrorTypeVisitor();

Callers 3

findOfClassValueMethod · 0.95
ambiguousNamesMethod · 0.95
mirrorForKindTypeMethod · 0.95

Calls 1

acceptMethod · 0.45

Tested by

no test coverage detected