Enum GenericUtilities.TypeCategory

java.lang.Object
java.lang.Enum<GenericUtilities.TypeCategory>
edu.umd.cs.findbugs.ba.generic.GenericUtilities.TypeCategory
All Implemented Interfaces:
Serializable, Comparable<GenericUtilities.TypeCategory>, java.lang.constant.Constable
Enclosing class:
GenericUtilities

public static enum GenericUtilities.TypeCategory extends Enum<GenericUtilities.TypeCategory>
  • Enum Constant Details

    • PLAIN_OBJECT_TYPE

      public static final GenericUtilities.TypeCategory PLAIN_OBJECT_TYPE
      A simple (non-generic ObjectType)
    • ARRAY_TYPE

      public static final GenericUtilities.TypeCategory ARRAY_TYPE
      A array
    • PARAMETERIZED

      public static final GenericUtilities.TypeCategory PARAMETERIZED
      A parameterized class e.g. List<String>
    • TYPE_VARIABLE

      public static final GenericUtilities.TypeCategory TYPE_VARIABLE
      A simple type variable e.g. E. Underlying ObjectType is java.lang.Object
    • WILDCARD

      public static final GenericUtilities.TypeCategory WILDCARD
      A simple wildcard i.e. ?. Underlying ObjectType is java.lang.Object
    • WILDCARD_EXTENDS

      public static final GenericUtilities.TypeCategory WILDCARD_EXTENDS
      A wildcard that extends another ObjectType e.g. ? extends Comparable. Underlying ObjectType is java.lang.Object. The extended type can be an ObjectType or a GenericObjectType
    • WILDCARD_SUPER

      public static final GenericUtilities.TypeCategory WILDCARD_SUPER
      A wildcard that is extended by another ObjectType e.g. ? super Comparable. Underlying ObjectType is java.lang.Object. The super type can be an ObjectType or a GenericObjectType
  • Method Details

    • values

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

      public static GenericUtilities.TypeCategory valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • asString

      public abstract String asString(GenericObjectType obj)
    • produce

      public abstract org.apache.bcel.generic.ReferenceType produce(GenericObjectType obj)
    • asString

      public static String asString(org.apache.bcel.generic.ArrayType atype)