Enum Class TypeDefinition.Sort

java.lang.Object
java.lang.Enum<TypeDefinition.Sort>
net.bytebuddy.description.type.TypeDefinition.Sort
All Implemented Interfaces:
Serializable, Comparable<TypeDefinition.Sort>, Constable
Enclosing interface:
TypeDefinition

public static enum TypeDefinition.Sort extends Enum<TypeDefinition.Sort>
Represents a TypeDescription.Generic's form.
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • Sort

      private Sort()
  • Method Details

    • values

      public static TypeDefinition.Sort[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TypeDefinition.Sort valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • doPrivileged

      @Enhance private static <T> T doPrivileged(PrivilegedAction<T> action)
      A proxy for java.security.AccessController#doPrivileged that is activated if available.
      Type Parameters:
      T - The type of the action's resolved value.
      Parameters:
      action - The action to execute from a privileged context.
      Returns:
      The action's resolved value.
    • describe

      public static TypeDescription.Generic describe(Type type)
      Describes a loaded generic type as a TypeDescription.Generic.
      Parameters:
      type - The type to describe.
      Returns:
      A description of the provided generic type.
    • describeAnnotated

      public static TypeDescription.Generic describeAnnotated(AnnotatedElement annotatedType)
      Describes a loaded java.lang.reflect.AnnotatedType as a TypeDescription.Generic.
      Parameters:
      annotatedType - The java.lang.reflect.AnnotatedType to describe.
      Returns:
      A description of the provided generic type.
    • describe

      protected static TypeDescription.Generic describe(Type type, TypeDescription.Generic.AnnotationReader annotationReader)
      Describes the generic type while using the supplied annotation reader for resolving type annotations if this language feature is available on the current JVM.
      Parameters:
      type - The type to describe.
      annotationReader - The annotation reader for extracting type annotations.
      Returns:
      A description of the provided generic annotated type.
    • isNonGeneric

      public boolean isNonGeneric()
      Checks if this type sort represents a non-generic type.
      Returns:
      true if this sort form represents a non-generic.
    • isParameterized

      public boolean isParameterized()
      Checks if this type sort represents a parameterized type.
      Returns:
      true if this sort form represents a parameterized type.
    • isGenericArray

      public boolean isGenericArray()
      Checks if this type sort represents a generic array.
      Returns:
      true if this type sort represents a generic array.
    • isWildcard

      public boolean isWildcard()
      Checks if this type sort represents a wildcard.
      Returns:
      true if this type sort represents a wildcard.
    • isTypeVariable

      public boolean isTypeVariable()
      Checks if this type sort represents a type variable of any form.
      Returns:
      true if this type sort represents an attached type variable.