public abstract class Type extends Object implements Switchable, Serializable, Numberable
int
, java.lang.String
.Constructor and Description |
---|
Type() |
Modifier and Type | Method and Description |
---|---|
void |
apply(Switch sw)
Method required for use of Switchable.
|
ArrayType |
getArrayType() |
String |
getEscapedName()
Gets the escaped name of this type.
|
int |
getNumber() |
boolean |
isAllowedInFinalCode()
Returns
true if this type is allowed to appear in
final (clean) Jimple code. |
ArrayType |
makeArrayType() |
Type |
merge(Type other,
Scene cm)
Returns the least common superclass of this type and other.
|
void |
setArrayType(ArrayType at) |
void |
setNumber(int number) |
static Type |
toMachineType(Type t)
Converts the int-like types (short, byte, boolean and char) to IntType.
|
abstract String |
toString()
Returns a textual representation of this type.
|
protected ArrayType arrayType
public abstract String toString()
public static Type toMachineType(Type t)
public Type merge(Type other, Scene cm)
public void apply(Switch sw)
apply
in interface Switchable
public void setArrayType(ArrayType at)
public ArrayType getArrayType()
public ArrayType makeArrayType()
public boolean isAllowedInFinalCode()
true
if this type is allowed to appear in
final (clean) Jimple code.public String getEscapedName()
public final int getNumber()
getNumber
in interface Numberable
public final void setNumber(int number)
setNumber
in interface Numberable