|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.graph.AbstractVertex<InheritanceGraphEdge,ObjectType>
edu.umd.cs.findbugs.ba.type2.ObjectType
public abstract class ObjectType
Lightweight data structure representing an object type: a node in the class hierarchy (i.e., a class or interface). Note that not all object types represent Java classes or interfaces: e.g., array types.
Instances of Type participate in the flyweight pattern, meaning there is at most one instance per type. Instances should be created and accessed using the TypeRepository class.
| Field Summary | |
|---|---|
static int |
KNOWN
|
static int |
UNCHECKED
|
static int |
UNKNOWN
|
| Constructor Summary | |
|---|---|
protected |
ObjectType(java.lang.String typeSignature)
|
| Method Summary | |
|---|---|
java.lang.String |
getSignature()
Return the JVM type signature. |
int |
getState()
Get the state of this type: UNCHECKED, KNOWN, or UNKNOWN. |
abstract boolean |
isArray()
Is this type an array type? |
boolean |
isBasicType()
Is this type a basic type? |
abstract boolean |
isInterface()
Determine if this type is an interface type (as opposed to a class or array type). |
boolean |
isReferenceType()
Is this type a reference type? |
boolean |
isValidArrayElementType()
Is this a valid array element type? |
| Methods inherited from class edu.umd.cs.findbugs.graph.AbstractVertex |
|---|
compareTo, getLabel, setLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.umd.cs.findbugs.ba.type2.Type |
|---|
accept, getTypeCode, isValidArrayBaseType |
| Field Detail |
|---|
public static final int UNCHECKED
public static final int KNOWN
public static final int UNKNOWN
| Constructor Detail |
|---|
protected ObjectType(java.lang.String typeSignature)
| Method Detail |
|---|
public int getState()
public java.lang.String getSignature()
Type
getSignature in interface Typepublic boolean isBasicType()
Type
isBasicType in interface Typepublic boolean isReferenceType()
Type
isReferenceType in interface Typepublic boolean isValidArrayElementType()
Type
isValidArrayElementType in interface Typepublic abstract boolean isInterface()
public abstract boolean isArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||