soot.jimple.internal
Class AbstractNewMultiArrayExpr

java.lang.Object
  |
  +--soot.jimple.internal.AbstractNewMultiArrayExpr
Direct Known Subclasses:
DNewMultiArrayExpr, GNewMultiArrayExpr, JNewMultiArrayExpr

public abstract class AbstractNewMultiArrayExpr
extends java.lang.Object
implements NewMultiArrayExpr, ConvertToBaf

See Also:
Serialized Form

Field Summary
protected  ValueBox[] sizeBoxes
           
 
Constructor Summary
protected AbstractNewMultiArrayExpr(ArrayType type, ValueBox[] sizeBoxes)
           
 
Method Summary
 void apply(Switch sw)
          Called when this object is visited.
abstract  java.lang.Object clone()
          Returns a clone of this Value.
 void convertToBaf(JimpleToBafContext context, java.util.List out)
           
 int equivHashCode()
          Returns a hash code for this object, consistent with structural equality.
 boolean equivTo(java.lang.Object o)
          Returns true if this object is equivalent to o.
 ArrayType getBaseType()
           
 Value getSize(int index)
           
 ValueBox getSizeBox(int index)
           
 int getSizeCount()
           
 java.util.List getSizes()
           
 Type getType()
          Returns the Soot type of this Value.
 java.util.List getUseBoxes()
          Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.
 void setBaseType(ArrayType baseType)
           
 void setSize(int index, Value size)
           
 java.lang.String toString()
           
 void toString(UnitPrinter up)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sizeBoxes

protected ValueBox[] sizeBoxes
Constructor Detail

AbstractNewMultiArrayExpr

protected AbstractNewMultiArrayExpr(ArrayType type,
                                    ValueBox[] sizeBoxes)
Method Detail

clone

public abstract java.lang.Object clone()
Description copied from interface: Value
Returns a clone of this Value.
Overrides:
clone in class java.lang.Object

equivTo

public boolean equivTo(java.lang.Object o)
Description copied from interface: EquivTo
Returns true if this object is equivalent to o.

equivHashCode

public int equivHashCode()
Returns a hash code for this object, consistent with structural equality.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public void toString(UnitPrinter up)

getBaseType

public ArrayType getBaseType()
Specified by:
getBaseType in interface NewMultiArrayExpr

setBaseType

public void setBaseType(ArrayType baseType)
Specified by:
setBaseType in interface NewMultiArrayExpr

getSizeBox

public ValueBox getSizeBox(int index)
Specified by:
getSizeBox in interface NewMultiArrayExpr

getSizeCount

public int getSizeCount()
Specified by:
getSizeCount in interface NewMultiArrayExpr

getSize

public Value getSize(int index)
Specified by:
getSize in interface NewMultiArrayExpr

getSizes

public java.util.List getSizes()
Specified by:
getSizes in interface NewMultiArrayExpr

setSize

public void setSize(int index,
                    Value size)
Specified by:
setSize in interface NewMultiArrayExpr

getUseBoxes

public java.util.List getUseBoxes()
Description copied from interface: Value
Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.

getType

public Type getType()
Description copied from interface: Value
Returns the Soot type of this Value.
Specified by:
getType in interface NewMultiArrayExpr

apply

public void apply(Switch sw)
Description copied from interface: Switchable
Called when this object is visited.
Specified by:
apply in interface NewMultiArrayExpr

convertToBaf

public void convertToBaf(JimpleToBafContext context,
                         java.util.List out)
Specified by:
convertToBaf in interface ConvertToBaf