public abstract class Type extends java.lang.Object implements Switchable, java.io.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() |
java.lang.String |
getEscapedName()
Deprecated.
|
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.
|
java.lang.String |
toQuotedString()
Returns a textual (and quoted as needed) representation of this type for serialization, e.g.
|
abstract java.lang.String |
toString()
Returns a textual representation of this type.
|
protected ArrayType arrayType
public abstract java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toQuotedString()
@Deprecated public java.lang.String getEscapedName()
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 final int getNumber()
getNumber
in interface Numberable
public final void setNumber(int number)
setNumber
in interface Numberable