soot
Class NullType
java.lang.Object
soot.Type
soot.RefLikeType
soot.NullType
- All Implemented Interfaces:
- Serializable, Numberable, Switchable
public class NullType
- extends RefLikeType
Soot representation of the Java type 'null'. Implemented as
a singleton.
- See Also:
- Serialized Form
Method Summary |
void |
apply(Switch sw)
Method required for use of Switchable. |
boolean |
equals(Object t)
|
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. |
int |
hashCode()
|
String |
toString()
Returns a textual representation of this type. |
static NullType |
v()
|
NullType
public NullType(Singletons.Global g)
v
public static NullType v()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object t)
- Overrides:
equals
in class Object
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