Class TypeDescription.Generic.AbstractBase

java.lang.Object
net.bytebuddy.description.ModifierReviewable.AbstractBase
net.bytebuddy.description.type.TypeDescription.Generic.AbstractBase
All Implemented Interfaces:
Iterable<TypeDefinition>, AnnotationSource, ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, NamedElement, TypeDefinition, TypeDescription.Generic
Direct Known Subclasses:
TypeDescription.Generic.LazyProjection, TypeDescription.Generic.OfGenericArray, TypeDescription.Generic.OfNonGenericType, TypeDescription.Generic.OfParameterizedType, TypeDescription.Generic.OfTypeVariable, TypeDescription.Generic.OfTypeVariable.Symbolic, TypeDescription.Generic.OfWildcardType
Enclosing interface:
TypeDescription.Generic

public abstract static class TypeDescription.Generic.AbstractBase extends ModifierReviewable.AbstractBase implements TypeDescription.Generic
An abstract base implementation of a generic type description.
  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • getModifiers

      public int getModifiers()
      Returns the modifier that is described by this object.
      Specified by:
      getModifiers in interface ModifierReviewable
      Returns:
      The modifier that is described by this object.
    • asGenericType

      public TypeDescription.Generic asGenericType()
      Returns this type definition as a generic type.
      Specified by:
      asGenericType in interface TypeDefinition
      Returns:
      This type definition represented as a generic type.
    • asRawType

      public TypeDescription.Generic asRawType()
      Returns this type as a raw type. This resembles calling asErasure().asGenericType().
      Specified by:
      asRawType in interface TypeDescription.Generic
      Returns:
      This type as a raw type.
    • represents

      public boolean represents(Type type)
      Checks if the type described by this instance represents type.
      Specified by:
      represents in interface TypeDefinition
      Parameters:
      type - The type of interest.
      Returns:
      true if the type described by this instance represents type.