public class JArrayRef extends java.lang.Object implements ArrayRef, ConvertToBaf
| Modifier and Type | Field and Description |
|---|---|
protected ValueBox |
baseBox |
protected ValueBox |
indexBox |
| Modifier | Constructor and Description |
|---|---|
protected |
JArrayRef(ValueBox baseBox,
ValueBox indexBox) |
|
JArrayRef(Value base,
Value index) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Switch sw)
Called when this object is visited.
|
java.lang.Object |
clone()
Returns a clone of this Value.
|
void |
convertToBaf(JimpleToBafContext context,
java.util.List<Unit> 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.
|
Value |
getBase() |
ValueBox |
getBaseBox() |
Value |
getIndex() |
ValueBox |
getIndexBox() |
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 |
setBase(Local base) |
void |
setIndex(Value index) |
java.lang.String |
toString() |
void |
toString(UnitPrinter up) |
public java.lang.Object clone()
Valuepublic boolean equivTo(java.lang.Object o)
EquivTopublic int equivHashCode()
equivHashCode in interface EquivTopublic java.lang.String toString()
toString in class java.lang.Objectpublic void toString(UnitPrinter up)
public ValueBox getBaseBox()
getBaseBox in interface ArrayRefpublic ValueBox getIndexBox()
getIndexBox in interface ArrayRefpublic java.util.List getUseBoxes()
ValuegetUseBoxes in interface Valuepublic Type getType()
Valuepublic void apply(Switch sw)
Switchableapply in interface ArrayRefapply in interface Switchablepublic void convertToBaf(JimpleToBafContext context, java.util.List<Unit> out)
convertToBaf in interface ConvertToBaf