Class ErasedType<T>

  • All Implemented Interfaces:
    java.lang.reflect.AnnotatedElement, java.lang.reflect.Type

    final class ErasedType<T>
    extends Type<T>
    • Field Detail

      • GenericEraser

        static final TypeEraser GenericEraser
      • _originalType

        private final Type<?> _originalType
      • _interfaces

        private TypeList _interfaces
      • _baseType

        private Type<?> _baseType
      • _nestedTypes

        private TypeList _nestedTypes
      • UpperBoundMapper

        private static final TypeMapper<java.lang.Void> UpperBoundMapper
    • Constructor Detail

      • ErasedType

        ErasedType​(Type<?> baseType)
    • Method Detail

      • ensureBaseType

        private void ensureBaseType()
      • ensureInterfaces

        private void ensureInterfaces()
      • ensureFields

        private void ensureFields()
      • ensureConstructors

        private void ensureConstructors()
      • ensureMethods

        private void ensureMethods()
      • ensureNestedTypes

        private void ensureNestedTypes()
      • getName

        public java.lang.String getName()
        Overrides:
        getName in class Type<T>
      • getClassFullName

        protected java.lang.String getClassFullName()
        Overrides:
        getClassFullName in class Type<T>
      • getClassSimpleName

        protected java.lang.String getClassSimpleName()
        Overrides:
        getClassSimpleName in class Type<T>
      • getFullName

        public java.lang.String getFullName()
        Overrides:
        getFullName in class Type<T>
      • getInternalName

        public java.lang.String getInternalName()
        Overrides:
        getInternalName in class Type<T>
      • getErasedClass

        public java.lang.Class<T> getErasedClass()
        Overrides:
        getErasedClass in class Type<T>
      • isGenericType

        public boolean isGenericType()
        Overrides:
        isGenericType in class Type<T>
      • isRawType

        public boolean isRawType()
        Overrides:
        isRawType in class Type<T>
      • isAnnotationPresent

        public boolean isAnnotationPresent​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
        Specified by:
        isAnnotationPresent in interface java.lang.reflect.AnnotatedElement
        Overrides:
        isAnnotationPresent in class Type<T>
      • getAnnotation

        public <A extends java.lang.annotation.Annotation> A getAnnotation​(java.lang.Class<A> annotationClass)
        Specified by:
        getAnnotation in interface java.lang.reflect.AnnotatedElement
        Overrides:
        getAnnotation in class Type<T>
      • getAnnotations

        @NotNull
        public java.lang.annotation.Annotation[] getAnnotations()
        Specified by:
        getAnnotations in interface java.lang.reflect.AnnotatedElement
        Overrides:
        getAnnotations in class Type<T>
      • getDeclaredAnnotations

        @NotNull
        public java.lang.annotation.Annotation[] getDeclaredAnnotations()
        Specified by:
        getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
        Overrides:
        getDeclaredAnnotations in class Type<T>
      • accept

        public <P,​R> R accept​(TypeVisitor<P,​R> typeVisitor,
                                    P parameter)
        Overrides:
        accept in class Type<T>