FindBugs™ 1.3.9

edu.umd.cs.findbugs.ba.generic
Enum GenericUtilities.TypeCategory

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

public static enum GenericUtilities.TypeCategory
extends java.lang.Enum<GenericUtilities.TypeCategory>


Enum Constant Summary
ARRAY_TYPE
          A array
NON_REFERENCE_TYPE
          anything that is not a reference
PARAMETERIZED
          A parameterized class e.g.
PLAIN_OBJECT_TYPE
          A simple (non-generic ObjectType)
TYPE_VARIABLE
          A simple type variable e.g.
WILDCARD
          A simple wildcard i.e.
WILDCARD_EXTENDS
          A wildcard that extends another ObjectType e.g.
WILDCARD_SUPER
          A wildcard that is extended by another ObjectType e.g.
 
Method Summary
static java.lang.String asString(org.apache.bcel.generic.ArrayType atype)
           
abstract  java.lang.String asString(GenericObjectType obj)
           
static GenericUtilities.TypeCategory valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GenericUtilities.TypeCategory[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NON_REFERENCE_TYPE

public static final GenericUtilities.TypeCategory NON_REFERENCE_TYPE
anything that is not a reference


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 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

asString

public abstract java.lang.String asString(GenericObjectType obj)

asString

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

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.