Class TypeDescription.AbstractBase.OfSimpleType.WithDelegation

    • Constructor Detail

      • WithDelegation

        public WithDelegation()
    • Method Detail

      • delegate

        protected abstract TypeDescription delegate()
        Returns the delegate type description to this type instance.
        Returns:
        The delegate type description.
      • getDeclaringType

        public TypeDescription getDeclaringType()
        Description copied from interface: DeclaredByType
        Returns the declaring type of this instance.
        Returns:
        The declaring type or null if no such type exists.
      • getEnclosingMethod

        public MethodDescription getEnclosingMethod()
        Description copied from interface: TypeDescription
        Returns a description of the method that encloses this type. If this method is not enclosed by any type or is enclosed by the type initializer, null is returned by this method.
        Returns:
        A description of the enclosing method of this type or null if there is no such method.
      • getEnclosingType

        public TypeDescription getEnclosingType()
        Description copied from interface: TypeDescription
        Returns a description of this type's enclosing type if any.
        Returns:
        A description of the enclosing type of this type or null if there is no such type.
      • getDeclaredTypes

        public TypeList getDeclaredTypes()
        Description copied from interface: TypeDescription
        Returns a list of types that are declared by this type excluding anonymous classes.
        Returns:
        A list of types that are declared within this type.
      • isAnonymousClass

        public boolean isAnonymousClass()
        Description copied from interface: TypeDescription
        Checks if this type description represents an anonymous type.
        Returns:
        true if this type description represents an anonymous type.
      • isLocalClass

        public boolean isLocalClass()
        Description copied from interface: TypeDescription
        Checks if this type description represents a local type.
        Returns:
        true if this type description represents a local type.
      • isMemberClass

        public boolean isMemberClass()
        Description copied from interface: TypeDescription
        Checks if this type description represents a member type.
        Returns:
        true if this type description represents a member type.
      • getPackage

        public PackageDescription getPackage()
        Description copied from interface: TypeDescription
        Returns the package internalName of the type described by this instance.
        Returns:
        The package internalName of the type described by this instance.
      • getDeclaredAnnotations

        public AnnotationList getDeclaredAnnotations()
        Description copied from interface: AnnotationSource
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.
      • getTypeVariables

        public TypeList.Generic getTypeVariables()
        Description copied from interface: TypeVariableSource
        Returns the type variables that are declared by this element.
        Returns:
        The type variables that are declared by this element.
      • getModifiers

        public int getModifiers()
        Description copied from interface: ModifierReviewable
        Returns the modifier that is described by this object.
        Returns:
        The modifier that is described by this object.
      • getGenericSignature

        public java.lang.String getGenericSignature()
        Description copied from interface: ByteCodeElement
        Returns the generic signature of this byte code element. If this element does not reference generic types or references malformed generic types, null is returned as a signature.
        Specified by:
        getGenericSignature in interface ByteCodeElement
        Overrides:
        getGenericSignature in class TypeDescription.AbstractBase
        Returns:
        The generic signature or null if this element is not generic.
      • getActualModifiers

        public int getActualModifiers​(boolean superFlag)
        Description copied from interface: TypeDescription
        Returns the type's actual modifiers as present in the class file. For example, a type cannot be private. but it modifiers might reflect this property nevertheless if a class was defined as a private inner class. The returned modifiers take also into account if the type is marked as Deprecated. Anonymous classes that are enclosed in a static method or the type initializer are additionally marked as final as it is also done by the Java compiler.
        Specified by:
        getActualModifiers in interface TypeDescription
        Overrides:
        getActualModifiers in class TypeDescription.AbstractBase
        Parameters:
        superFlag - true if the modifier's super flag should be set.
        Returns:
        The type's actual modifiers.