|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--soot.Type | +--soot.BaseType | +--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.
Field Summary | |
java.lang.String |
className
the class name that parametrizes this RefType |
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. |
SootClass |
getSootClass()
Get the SootClass object corresponding to this RefType. |
int |
hashCode()
|
java.lang.String |
toBriefString()
Returns a brief description of this object. |
java.lang.String |
toString()
Returns a textual representation of this type. |
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 |
merge, toMachineType |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public final java.lang.String className
Method Detail |
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
compareTo
in interface java.lang.Comparable
public static RefType v(SootClass c)
c
- A SootClass for which to create a RefType.public static RefType v()
public SootClass getSootClass()
public boolean equals(java.lang.Object t)
equals
in class java.lang.Object
t
- an object to test for equality.public java.lang.String toString()
Type
toString
in class BaseType
soot.BaseType
public java.lang.String toBriefString()
ToBriefString
toBriefString
in interface ToBriefString
toBriefString
in class Type
public int hashCode()
hashCode
in class java.lang.Object
public void apply(Switch sw)
Type
apply
in class Type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |