|
|||||||||
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
edu.umd.cs.findbugs.ba.type.ClassType
public class ClassType
Type of objects that are instances of a class. This includes all class and interface types, but excludes array types.
Field Summary | |
---|---|
private java.lang.String |
className
|
private boolean |
isInterface
|
private java.lang.ClassNotFoundException |
resolverFailure
|
Fields inherited from class edu.umd.cs.findbugs.ba.type.ObjectType |
---|
KNOWN, UNCHECKED, UNKNOWN |
Constructor Summary | |
---|---|
ClassType(java.lang.String typeSignature)
|
Method Summary | |
---|---|
void |
accept(TypeVisitor visitor)
Accept an TypeVisitor. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getClassName()
|
(package private) java.lang.ClassNotFoundException |
getResolverFailure()
|
int |
getTypeCode()
Return the type code value as defined in org.apache.bcel.Constants or ExtendedTypes . |
int |
hashCode()
|
boolean |
isArray()
Is this type an array type? |
boolean |
isInterface()
Determine if this type is an interface type (as opposed to a class or array type). |
boolean |
isValidArrayBaseType()
Is this a valid array base type? |
void |
setIsInterface(boolean isInterface)
Mark the type as an interface. |
(package private) void |
setResolverFailure(java.lang.ClassNotFoundException e)
|
void |
setUnknown()
Mark the type as unknown: a check to determine whether it was a class or interface failed. |
java.lang.String |
toString()
|
Methods inherited from class edu.umd.cs.findbugs.ba.type.ObjectType |
---|
getSignature, getState, getSubtypeQueryResult, isBasicType, isReferenceType, isValidArrayElementType, setState, setSubtypeQueryResult |
Methods inherited from class edu.umd.cs.findbugs.graph.AbstractVertex |
---|
compareTo, getLabel, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String className
private boolean isInterface
private java.lang.ClassNotFoundException resolverFailure
Constructor Detail |
---|
ClassType(java.lang.String typeSignature)
Method Detail |
---|
void setResolverFailure(java.lang.ClassNotFoundException e)
java.lang.ClassNotFoundException getResolverFailure()
public void setIsInterface(boolean isInterface)
public void setUnknown()
public int getTypeCode()
Type
ExtendedTypes
.
public java.lang.String getClassName()
public boolean isValidArrayBaseType()
Type
public void accept(TypeVisitor visitor)
Type
visitor
- the visitorpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isInterface()
ObjectType
isInterface
in class ObjectType
public boolean isArray()
ObjectType
isArray
in class ObjectType
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |