Returns true if the raw type underlying the given TypeMirror represents a type that can be referenced by a Class. If this returns true, then #isTypeOf is guaranteed to not throw.
(TypeMirror type)
| 803 | * not throw. |
| 804 | */ |
| 805 | public static boolean isType(TypeMirror type) { |
| 806 | return type.accept(IsTypeVisitor.INSTANCE, null); |
| 807 | } |
| 808 | |
| 809 | private static final class IsTypeVisitor extends SimpleTypeVisitor8<Boolean, Void> { |
| 810 | private static final IsTypeVisitor INSTANCE = new IsTypeVisitor(); |