soot
Class AnySubType
java.lang.Object
soot.Type
soot.RefLikeType
soot.AnySubType
- All Implemented Interfaces:
- Serializable, Numberable, Switchable
public class AnySubType
- extends RefLikeType
- See Also:
- Serialized Form
Method Summary |
void |
apply(Switch sw)
Method required for use of Switchable. |
Type |
getArrayElementType()
If I have a variable x of declared type t, what is a good
declared type for the expression ((Object[]) x)[i]? The
getArrayElementType() method in RefLikeType was introduced even
later to answer this question for all classes implementing
RefLikeType. |
RefType |
getBase()
|
void |
setBase(RefType base)
|
String |
toString()
Returns a textual representation of this type. |
static AnySubType |
v(RefType base)
|
v
public static AnySubType v(RefType base)
toString
public String toString()
- Description copied from class:
Type
- Returns a textual representation of this type.
- Specified by:
toString
in class Type
apply
public void apply(Switch sw)
- Description copied from class:
Type
- Method required for use of Switchable.
- Specified by:
apply
in interface Switchable
- Overrides:
apply
in class Type
getArrayElementType
public Type getArrayElementType()
- Description copied from class:
RefLikeType
- If I have a variable x of declared type t, what is a good
declared type for the expression ((Object[]) x)[i]? The
getArrayElementType() method in RefLikeType was introduced even
later to answer this question for all classes implementing
RefLikeType. If t is an array, then the answer is the same as
getElementType(). But t could also be Object, Serializable, or
Cloneable, which can all hold any array, so then the answer is
Object.
- Specified by:
getArrayElementType
in class RefLikeType
getBase
public RefType getBase()
setBase
public void setBase(RefType base)