|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--soot.Type | +--soot.RefLikeType | +--soot.RefType
A class that models Java's reference types. RefTypes are parametrized by a class name. Two RefType are equal iff they are parametrized by the same class name as a String.
Fields inherited from class soot.Type |
arrayType |
Method Summary | |
void |
apply(Switch sw)
Method required for use of Switchable. |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object t)
2 RefTypes are considered equal if they are parametrized by the same class name String. |
AnySubType |
getAnySubType()
|
Type |
getArrayElementType()
|
java.lang.String |
getClassName()
|
SootClass |
getSootClass()
Get the SootClass object corresponding to this RefType. |
int |
hashCode()
|
Type |
merge(Type other,
Scene cm)
Returns the least common superclass of this type and other. |
void |
setAnySubType(AnySubType anySubType)
|
void |
setSootClass(SootClass sootClass)
Get the SootClass object corresponding to this RefType. |
java.lang.String |
toBriefString()
Returns a brief description of this object. |
java.lang.String |
toString()
Returns a textual representation of this type. |
java.lang.String |
toVeryBriefString()
|
static RefType |
v()
Get the default RefType. |
static RefType |
v(SootClass c)
Create a RefType for a class. |
static RefType |
v(java.lang.String className)
Create a RefType for a class. |
Methods inherited from class soot.Type |
getArrayType,
getNumber,
makeArrayType,
setArrayType,
setNumber,
toMachineType |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public java.lang.String getClassName()
public static RefType v(java.lang.String className)
className
- The name of the class used to parametrize the created RefType.public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
public static RefType v(SootClass c)
c
- A SootClass for which to create a RefType.public static RefType v()
public SootClass getSootClass()
public void setSootClass(SootClass sootClass)
public boolean equals(java.lang.Object t)
t
- an object to test for equality.public java.lang.String toString()
public java.lang.String toBriefString()
public java.lang.String toVeryBriefString()
public int hashCode()
public void apply(Switch sw)
public Type merge(Type other, Scene cm)
public Type getArrayElementType()
public AnySubType getAnySubType()
public void setAnySubType(AnySubType anySubType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |