soot
Class NullType

java.lang.Object
  extended by soot.Type
      extended by soot.RefLikeType
          extended by 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

Field Summary
 
Fields inherited from class soot.Type
arrayType
 
Constructor Summary
NullType(Singletons.Global g)
           
 
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()
           
 
Methods inherited from class soot.Type
getArrayType, getNumber, makeArrayType, merge, setArrayType, setNumber, toMachineType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullType

public NullType(Singletons.Global g)
Method Detail

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