public abstract class AbstractNewMultiArrayExpr extends Object implements NewMultiArrayExpr, ConvertToBaf
Modifier | Constructor and Description |
---|---|
protected |
AbstractNewMultiArrayExpr(ArrayType type,
ValueBox[] sizeBoxes) |
Modifier and Type | Method and Description |
---|---|
void |
apply(Switch sw)
Called when this object is visited.
|
abstract Object |
clone()
Returns a clone of this Value.
|
void |
convertToBaf(JimpleToBafContext context,
List<Unit> out) |
int |
equivHashCode()
Returns a hash code for this object, consistent with structural equality.
|
boolean |
equivTo(Object o)
Returns true if this object is equivalent to o.
|
ArrayType |
getBaseType() |
Value |
getSize(int index) |
ValueBox |
getSizeBox(int index) |
int |
getSizeCount() |
List<Value> |
getSizes() |
Type |
getType()
Returns the Soot type of this Value.
|
List<ValueBox> |
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) |
String |
toString() |
void |
toString(UnitPrinter up) |
protected final ValueBox[] sizeBoxes
public abstract Object clone()
Value
public boolean equivTo(Object o)
EquivTo
public int equivHashCode()
equivHashCode
in interface EquivTo
public void toString(UnitPrinter up)
public ArrayType getBaseType()
getBaseType
in interface NewMultiArrayExpr
public void setBaseType(ArrayType baseType)
setBaseType
in interface NewMultiArrayExpr
public ValueBox getSizeBox(int index)
getSizeBox
in interface NewMultiArrayExpr
public int getSizeCount()
getSizeCount
in interface NewMultiArrayExpr
public Value getSize(int index)
getSize
in interface NewMultiArrayExpr
public List<Value> getSizes()
getSizes
in interface NewMultiArrayExpr
public void setSize(int index, Value size)
setSize
in interface NewMultiArrayExpr
public final List<ValueBox> getUseBoxes()
Value
getUseBoxes
in interface Value
public Type getType()
Value
getType
in interface NewMultiArrayExpr
getType
in interface Value
public void apply(Switch sw)
Switchable
apply
in interface NewMultiArrayExpr
apply
in interface Switchable
public void convertToBaf(JimpleToBafContext context, List<Unit> out)
convertToBaf
in interface ConvertToBaf