Enum GenericUtilities.TypeCategory

    • Enum Constant Detail

      • TYPE_VARIABLE

        public static final GenericUtilities.TypeCategory TYPE_VARIABLE
        A simple type variable e.g. 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 Detail

      • values

        public static GenericUtilities.TypeCategory[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GenericUtilities.TypeCategory c : GenericUtilities.TypeCategory.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GenericUtilities.TypeCategory valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • produce

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

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