Class TypeSimplifier.CastingUncheckedVisitor

  • All Implemented Interfaces:
    javax.lang.model.type.TypeVisitor<java.lang.Boolean,​java.lang.Boolean>
    Enclosing class:
    TypeSimplifier

    private static class TypeSimplifier.CastingUncheckedVisitor
    extends javax.lang.model.util.SimpleTypeVisitor8<java.lang.Boolean,​java.lang.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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Boolean defaultAction​(javax.lang.model.type.TypeMirror e, java.lang.Boolean p)  
      private static boolean isJavaLangObject​(javax.lang.model.type.TypeMirror type)  
      private boolean uncheckedTypeArgument​(javax.lang.model.type.TypeMirror arg)  
      java.lang.Boolean visitArray​(javax.lang.model.type.ArrayType t, java.lang.Boolean p)  
      java.lang.Boolean visitDeclared​(javax.lang.model.type.DeclaredType t, java.lang.Boolean p)  
      java.lang.Boolean visitTypeVariable​(javax.lang.model.type.TypeVariable t, java.lang.Boolean p)  
      java.lang.Boolean visitUnknown​(javax.lang.model.type.TypeMirror t, java.lang.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CastingUncheckedVisitor

        private CastingUncheckedVisitor()
    • Method Detail

      • defaultAction

        protected java.lang.Boolean defaultAction​(javax.lang.model.type.TypeMirror e,
                                                  java.lang.Boolean p)
        Overrides:
        defaultAction in class javax.lang.model.util.SimpleTypeVisitor6<java.lang.Boolean,​java.lang.Boolean>
      • visitUnknown

        public java.lang.Boolean visitUnknown​(javax.lang.model.type.TypeMirror t,
                                              java.lang.Boolean p)
        Specified by:
        visitUnknown in interface javax.lang.model.type.TypeVisitor<java.lang.Boolean,​java.lang.Boolean>
        Overrides:
        visitUnknown in class javax.lang.model.util.AbstractTypeVisitor6<java.lang.Boolean,​java.lang.Boolean>
      • visitArray

        public java.lang.Boolean visitArray​(javax.lang.model.type.ArrayType t,
                                            java.lang.Boolean p)
        Specified by:
        visitArray in interface javax.lang.model.type.TypeVisitor<java.lang.Boolean,​java.lang.Boolean>
        Overrides:
        visitArray in class javax.lang.model.util.SimpleTypeVisitor6<java.lang.Boolean,​java.lang.Boolean>
      • visitDeclared

        public java.lang.Boolean visitDeclared​(javax.lang.model.type.DeclaredType t,
                                               java.lang.Boolean p)
        Specified by:
        visitDeclared in interface javax.lang.model.type.TypeVisitor<java.lang.Boolean,​java.lang.Boolean>
        Overrides:
        visitDeclared in class javax.lang.model.util.SimpleTypeVisitor6<java.lang.Boolean,​java.lang.Boolean>
      • visitTypeVariable

        public java.lang.Boolean visitTypeVariable​(javax.lang.model.type.TypeVariable t,
                                                   java.lang.Boolean p)
        Specified by:
        visitTypeVariable in interface javax.lang.model.type.TypeVisitor<java.lang.Boolean,​java.lang.Boolean>
        Overrides:
        visitTypeVariable in class javax.lang.model.util.SimpleTypeVisitor6<java.lang.Boolean,​java.lang.Boolean>
      • uncheckedTypeArgument

        private boolean uncheckedTypeArgument​(javax.lang.model.type.TypeMirror arg)
      • isJavaLangObject

        private static boolean isJavaLangObject​(javax.lang.model.type.TypeMirror type)