Package 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
-
-
Constructor Summary
Constructors Constructor Description NullType(Singletons.Global g)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Switch sw)Method required for use of Switchable.booleanequals(Object t)TypegetArrayElementType()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.inthashCode()StringtoString()Returns a textual representation of this type.static NullTypev()-
Methods inherited from class soot.Type
getArrayType, getDefaultFinalType, getEscapedName, getNumber, isAllowedInFinalCode, makeArrayType, merge, setArrayType, setNumber, toMachineType, toQuotedString
-
-
-
-
Constructor Detail
-
NullType
public NullType(Singletons.Global g)
-
-
Method Detail
-
v
public static NullType v()
-
toString
public String toString()
Description copied from class:TypeReturns a textual representation of this type.
-
apply
public void apply(Switch sw)
Description copied from class:TypeMethod required for use of Switchable.- Specified by:
applyin interfaceSwitchable- Overrides:
applyin classType
-
getArrayElementType
public Type getArrayElementType()
Description copied from class:RefLikeTypeIf 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:
getArrayElementTypein classRefLikeType
-
-