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)
| 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(); |
no test coverage detected