Package com.google.auto.value.processor
Class TypeSimplifier.CastingUncheckedVisitor
java.lang.Object
javax.lang.model.util.AbstractTypeVisitor6<R,P>
javax.lang.model.util.SimpleTypeVisitor6<R,P>
javax.lang.model.util.SimpleTypeVisitor7<R,P>
javax.lang.model.util.SimpleTypeVisitor8<Boolean,Boolean>
com.google.auto.value.processor.TypeSimplifier.CastingUncheckedVisitor
- All Implemented Interfaces:
TypeVisitor<Boolean,
Boolean>
- Enclosing class:
- TypeSimplifier
private static class TypeSimplifier.CastingUncheckedVisitor
extends SimpleTypeVisitor8<Boolean,Boolean>
Visitor that tells whether a type is erased, in the sense of
TypeSimplifier.isCastingUnchecked(javax.lang.model.type.TypeMirror)
. Each
visitX method returns true if its input parameter is true or if the type being visited is
erased.-
Field Summary
Fields inherited from class javax.lang.model.util.SimpleTypeVisitor6
DEFAULT_VALUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Boolean
defaultAction
(TypeMirror e, Boolean p) private static boolean
isJavaLangObject
(TypeMirror type) private boolean
visitArray
(ArrayType t, Boolean p) visitDeclared
(DeclaredType t, Boolean p) visitUnknown
(TypeMirror t, Boolean p) Methods inherited from class javax.lang.model.util.SimpleTypeVisitor8
visitIntersection
Methods inherited from class javax.lang.model.util.SimpleTypeVisitor7
visitUnion
Methods inherited from class javax.lang.model.util.SimpleTypeVisitor6
visitError, visitExecutable, visitNoType, visitNull, visitPrimitive, visitWildcard
Methods inherited from class javax.lang.model.util.AbstractTypeVisitor6
visit, visit
-
Constructor Details
-
CastingUncheckedVisitor
private CastingUncheckedVisitor()
-
-
Method Details
-
defaultAction
- Overrides:
defaultAction
in classSimpleTypeVisitor6<Boolean,
Boolean>
-
visitUnknown
- Specified by:
visitUnknown
in interfaceTypeVisitor<Boolean,
Boolean> - Overrides:
visitUnknown
in classAbstractTypeVisitor6<Boolean,
Boolean>
-
visitArray
- Specified by:
visitArray
in interfaceTypeVisitor<Boolean,
Boolean> - Overrides:
visitArray
in classSimpleTypeVisitor6<Boolean,
Boolean>
-
visitDeclared
- Specified by:
visitDeclared
in interfaceTypeVisitor<Boolean,
Boolean> - Overrides:
visitDeclared
in classSimpleTypeVisitor6<Boolean,
Boolean>
-
visitTypeVariable
- Specified by:
visitTypeVariable
in interfaceTypeVisitor<Boolean,
Boolean> - Overrides:
visitTypeVariable
in classSimpleTypeVisitor6<Boolean,
Boolean>
-
uncheckedTypeArgument
-
isJavaLangObject
-