soot.jimple.internal
Class JArrayRef
java.lang.Object
|
+--soot.jimple.internal.JArrayRef
- Direct Known Subclasses:
- GArrayRef
- public class JArrayRef
- extends java.lang.Object
- implements ArrayRef, ConvertToBaf
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
baseBox
protected ValueBox baseBox
indexBox
protected ValueBox indexBox
JArrayRef
public JArrayRef(Value base,
Value index)
JArrayRef
protected JArrayRef(ValueBox baseBox,
ValueBox indexBox)
clone
public 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)
getBase
public Value getBase()
- Specified by:
- getBase in interface ArrayRef
setBase
public void setBase(Local base)
- Specified by:
- setBase in interface ArrayRef
getBaseBox
public ValueBox getBaseBox()
- Specified by:
- getBaseBox in interface ArrayRef
getIndex
public Value getIndex()
- Specified by:
- getIndex in interface ArrayRef
setIndex
public void setIndex(Value index)
- Specified by:
- setIndex in interface ArrayRef
getIndexBox
public ValueBox getIndexBox()
- Specified by:
- getIndexBox in interface ArrayRef
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 ArrayRef
apply
public void apply(Switch sw)
- Description copied from interface: Switchable
- Called when this object is visited.
- Specified by:
- apply in interface ArrayRef
convertToBaf
public void convertToBaf(JimpleToBafContext context,
java.util.List out)
- Specified by:
- convertToBaf in interface ConvertToBaf