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() |
Type |
getDefaultFinalType()
If this type is not allowed in final code, this method provides a replacement type that is allowed in final code
|
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.
|
String |
toQuotedString()
Returns a textual (and quoted as needed) representation of this type for serialization, e.g.
|
abstract String |
toString()
Returns a textual representation of this type.
|
protected ArrayType arrayType
public abstract String toString()
public String toQuotedString()
@Deprecated public 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
public Type getDefaultFinalType()
Copyright © 2021 Soot OSS. All rights reserved.