soot
Class Type
java.lang.Object
|
+--soot.Type
- All Implemented Interfaces:
- Switchable, ToBriefString
- Direct Known Subclasses:
- ArrayType, BaseType, DoubleWordType, ErroneousType, NullType, StmtAddressType, UnknownType, VoidType, WordType
- public abstract class Type
- extends java.lang.Object
- implements Switchable, ToBriefString
Represents types within Soot, eg int
, java.lang.String
.
Constructor Summary |
Type()
|
Method Summary |
void |
apply(Switch sw)
Method required for use of Switchable. |
Type |
merge(Type other,
Scene cm)
Returns the least common superclass of this type and other. |
java.lang.String |
toBriefString()
Returns a brief textual representation of this type. |
static Type |
toMachineType(Type t)
Converts the int-like types (short, byte, boolean and char) to IntType. |
abstract java.lang.String |
toString()
Returns a textual representation of this type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Type
public Type()
toString
public abstract java.lang.String toString()
- Returns a textual representation of this type.
- Overrides:
toString
in class java.lang.Object
toBriefString
public java.lang.String toBriefString()
- Returns a brief textual representation of this type.
- Specified by:
toBriefString
in interface ToBriefString
toMachineType
public static Type toMachineType(Type t)
- Converts the int-like types (short, byte, boolean and char) to IntType.
merge
public Type merge(Type other,
Scene cm)
- Returns the least common superclass of this type and other.
apply
public void apply(Switch sw)
- Method required for use of Switchable.
- Specified by:
apply
in interface Switchable