|
|||||||||
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.type.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
|
private int |
state
|
private SubtypeQueryResult |
subtypeQueryResult
|
private java.lang.String |
typeSignature
|
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. |
(package private) SubtypeQueryResult |
getSubtypeQueryResult()
Get the SubtypeQueryResult. |
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? |
(package private) void |
setState(int state)
Set the state: UNCHECKED, KNOWN, or UNKNOWN. |
(package private) void |
setSubtypeQueryResult(SubtypeQueryResult subtypeQueryResult)
Set the SubtypeQueryResult. |
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.type.Type |
---|
accept, getTypeCode, isValidArrayBaseType |
Field Detail |
---|
public static final int UNCHECKED
public static final int KNOWN
public static final int UNKNOWN
private java.lang.String typeSignature
private int state
private SubtypeQueryResult subtypeQueryResult
Constructor Detail |
---|
protected ObjectType(java.lang.String typeSignature)
Method Detail |
---|
public int getState()
void setState(int state)
state
- the statevoid setSubtypeQueryResult(SubtypeQueryResult subtypeQueryResult)
SubtypeQueryResult getSubtypeQueryResult()
public java.lang.String getSignature()
Type
getSignature
in interface Type
public boolean isBasicType()
Type
isBasicType
in interface Type
public boolean isReferenceType()
Type
isReferenceType
in interface Type
public boolean isValidArrayElementType()
Type
isValidArrayElementType
in interface Type
public abstract boolean isInterface()
public abstract boolean isArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |