soot
Class AnySubType

java.lang.Object
  extended by soot.Type
      extended by soot.RefLikeType
          extended by soot.AnySubType
All Implemented Interfaces:
Serializable, Numberable, Switchable

public class AnySubType
extends RefLikeType

See Also:
Serialized Form

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

Method Detail

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)