Class TypesImpl

  • All Implemented Interfaces:
    javax.lang.model.util.Types

    public class TypesImpl
    extends java.lang.Object
    implements javax.lang.model.util.Types
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static javax.lang.model.type.PrimitiveType Boolean  
      static javax.lang.model.type.PrimitiveType Byte  
      static javax.lang.model.type.PrimitiveType Char  
      static javax.lang.model.type.PrimitiveType Double  
      static javax.lang.model.type.PrimitiveType Float  
      static javax.lang.model.type.PrimitiveType Int  
      static javax.lang.model.type.PrimitiveType Long  
      static javax.lang.model.type.NoType None  
      static javax.lang.model.type.NullType Null  
      static javax.lang.model.type.NoType Package  
      static javax.lang.model.type.PrimitiveType Short  
      static javax.lang.model.type.NoType Void  
    • Constructor Summary

      Constructors 
      Constructor Description
      TypesImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addInterfaces​(java.util.Set<javax.lang.model.type.TypeMirror> set, javax.lang.model.element.TypeElement type)  
      private java.util.Set<? extends javax.lang.model.type.TypeMirror> allSupertypes​(javax.lang.model.type.TypeMirror t)  
      javax.lang.model.element.Element asElement​(javax.lang.model.type.TypeMirror t)  
      javax.lang.model.type.TypeMirror asMemberOf​(javax.lang.model.type.DeclaredType containing, javax.lang.model.element.Element element)  
      javax.lang.model.element.TypeElement boxedClass​(javax.lang.model.type.PrimitiveType p)  
      javax.lang.model.type.TypeMirror capture​(javax.lang.model.type.TypeMirror t)  
      boolean contains​(javax.lang.model.type.TypeMirror t1, javax.lang.model.type.TypeMirror t2)  
      java.util.List<? extends javax.lang.model.type.TypeMirror> directSupertypes​(javax.lang.model.type.TypeMirror t)
      The direct superclass is the class from whose implementation the implementation of the current class is derived.
      javax.lang.model.type.TypeMirror erasure​(javax.lang.model.type.TypeMirror t)  
      javax.lang.model.type.ArrayType getArrayType​(javax.lang.model.type.TypeMirror componentType)  
      javax.lang.model.type.DeclaredType getDeclaredType​(javax.lang.model.element.TypeElement typeElem, javax.lang.model.type.TypeMirror... typeArgs)  
      javax.lang.model.type.DeclaredType getDeclaredType​(javax.lang.model.type.DeclaredType containing, javax.lang.model.element.TypeElement typeElem, javax.lang.model.type.TypeMirror... typeArgs)  
      javax.lang.model.type.NoType getNoType​(javax.lang.model.type.TypeKind kind)  
      javax.lang.model.type.NullType getNullType()  
      javax.lang.model.type.PrimitiveType getPrimitiveType​(javax.lang.model.type.TypeKind kind)  
      javax.lang.model.type.WildcardType getWildcardType​(javax.lang.model.type.TypeMirror extendsBound, javax.lang.model.type.TypeMirror superBound)  
      boolean isAssignable​(javax.lang.model.type.TypeMirror t1, javax.lang.model.type.TypeMirror t2)  
      boolean isSameType​(javax.lang.model.type.TypeMirror t1, javax.lang.model.type.TypeMirror t2)  
      boolean isSubsignature​(javax.lang.model.type.ExecutableType m1, javax.lang.model.type.ExecutableType m2)  
      boolean isSubtype​(javax.lang.model.type.TypeMirror sub, javax.lang.model.type.TypeMirror sup)  
      javax.lang.model.type.PrimitiveType unboxedType​(javax.lang.model.type.TypeMirror t)  
      • Methods inherited from class java.lang.Object

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

      • Null

        public static final javax.lang.model.type.NullType Null
      • Void

        public static final javax.lang.model.type.NoType Void
      • Package

        public static final javax.lang.model.type.NoType Package
      • None

        public static final javax.lang.model.type.NoType None
      • Byte

        public static final javax.lang.model.type.PrimitiveType Byte
      • Boolean

        public static final javax.lang.model.type.PrimitiveType Boolean
      • Char

        public static final javax.lang.model.type.PrimitiveType Char
      • Short

        public static final javax.lang.model.type.PrimitiveType Short
      • Int

        public static final javax.lang.model.type.PrimitiveType Int
      • Long

        public static final javax.lang.model.type.PrimitiveType Long
      • Float

        public static final javax.lang.model.type.PrimitiveType Float
      • Double

        public static final javax.lang.model.type.PrimitiveType Double
    • Constructor Detail

      • TypesImpl

        public TypesImpl()
    • Method Detail

      • asElement

        public javax.lang.model.element.Element asElement​(javax.lang.model.type.TypeMirror t)
        Specified by:
        asElement in interface javax.lang.model.util.Types
      • isSameType

        public boolean isSameType​(javax.lang.model.type.TypeMirror t1,
                                  javax.lang.model.type.TypeMirror t2)
        Specified by:
        isSameType in interface javax.lang.model.util.Types
      • isSubtype

        public boolean isSubtype​(javax.lang.model.type.TypeMirror sub,
                                 javax.lang.model.type.TypeMirror sup)
        Specified by:
        isSubtype in interface javax.lang.model.util.Types
      • isAssignable

        public boolean isAssignable​(javax.lang.model.type.TypeMirror t1,
                                    javax.lang.model.type.TypeMirror t2)
        Specified by:
        isAssignable in interface javax.lang.model.util.Types
      • contains

        public boolean contains​(javax.lang.model.type.TypeMirror t1,
                                javax.lang.model.type.TypeMirror t2)
        Specified by:
        contains in interface javax.lang.model.util.Types
      • isSubsignature

        public boolean isSubsignature​(javax.lang.model.type.ExecutableType m1,
                                      javax.lang.model.type.ExecutableType m2)
        Specified by:
        isSubsignature in interface javax.lang.model.util.Types
      • directSupertypes

        public java.util.List<? extends javax.lang.model.type.TypeMirror> directSupertypes​(javax.lang.model.type.TypeMirror t)
        The direct superclass is the class from whose implementation the implementation of the current class is derived.
        Specified by:
        directSupertypes in interface javax.lang.model.util.Types
        Parameters:
        t -
        Returns:
      • allSupertypes

        private java.util.Set<? extends javax.lang.model.type.TypeMirror> allSupertypes​(javax.lang.model.type.TypeMirror t)
      • addInterfaces

        private void addInterfaces​(java.util.Set<javax.lang.model.type.TypeMirror> set,
                                   javax.lang.model.element.TypeElement type)
      • erasure

        public javax.lang.model.type.TypeMirror erasure​(javax.lang.model.type.TypeMirror t)
        Specified by:
        erasure in interface javax.lang.model.util.Types
      • boxedClass

        public javax.lang.model.element.TypeElement boxedClass​(javax.lang.model.type.PrimitiveType p)
        Specified by:
        boxedClass in interface javax.lang.model.util.Types
      • unboxedType

        public javax.lang.model.type.PrimitiveType unboxedType​(javax.lang.model.type.TypeMirror t)
        Specified by:
        unboxedType in interface javax.lang.model.util.Types
      • capture

        public javax.lang.model.type.TypeMirror capture​(javax.lang.model.type.TypeMirror t)
        Specified by:
        capture in interface javax.lang.model.util.Types
      • getPrimitiveType

        public javax.lang.model.type.PrimitiveType getPrimitiveType​(javax.lang.model.type.TypeKind kind)
        Specified by:
        getPrimitiveType in interface javax.lang.model.util.Types
      • getNullType

        public javax.lang.model.type.NullType getNullType()
        Specified by:
        getNullType in interface javax.lang.model.util.Types
      • getNoType

        public javax.lang.model.type.NoType getNoType​(javax.lang.model.type.TypeKind kind)
        Specified by:
        getNoType in interface javax.lang.model.util.Types
      • getArrayType

        public javax.lang.model.type.ArrayType getArrayType​(javax.lang.model.type.TypeMirror componentType)
        Specified by:
        getArrayType in interface javax.lang.model.util.Types
      • getWildcardType

        public javax.lang.model.type.WildcardType getWildcardType​(javax.lang.model.type.TypeMirror extendsBound,
                                                                  javax.lang.model.type.TypeMirror superBound)
        Specified by:
        getWildcardType in interface javax.lang.model.util.Types
      • getDeclaredType

        public javax.lang.model.type.DeclaredType getDeclaredType​(javax.lang.model.element.TypeElement typeElem,
                                                                  javax.lang.model.type.TypeMirror... typeArgs)
        Specified by:
        getDeclaredType in interface javax.lang.model.util.Types
      • getDeclaredType

        public javax.lang.model.type.DeclaredType getDeclaredType​(javax.lang.model.type.DeclaredType containing,
                                                                  javax.lang.model.element.TypeElement typeElem,
                                                                  javax.lang.model.type.TypeMirror... typeArgs)
        Specified by:
        getDeclaredType in interface javax.lang.model.util.Types
      • asMemberOf

        public javax.lang.model.type.TypeMirror asMemberOf​(javax.lang.model.type.DeclaredType containing,
                                                           javax.lang.model.element.Element element)
        Specified by:
        asMemberOf in interface javax.lang.model.util.Types