Package soot.jimple.internal
Class JArrayRef
- java.lang.Object
-
- soot.jimple.internal.JArrayRef
-
- All Implemented Interfaces:
Serializable,EquivTo,ArrayRef,ConcreteRef,ConvertToBaf,Ref,Switchable,Value
- Direct Known Subclasses:
GArrayRef
public class JArrayRef extends Object implements ArrayRef, ConvertToBaf
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Switch sw)Called when this object is visited.Objectclone()Returns a clone of this Value.voidconvertToBaf(JimpleToBafContext context, List<Unit> out)intequivHashCode()Returns a hash code for this object, consistent with structural equality.booleanequivTo(Object o)Returns true if this object is equivalent to o.ValuegetBase()ValueBoxgetBaseBox()static TypegetElementType(Type type)ValuegetIndex()ValueBoxgetIndexBox()TypegetType()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.voidsetBase(Local base)voidsetIndex(Value index)StringtoString()voidtoString(UnitPrinter up)
-
-
-
Method Detail
-
equivTo
public boolean equivTo(Object o)
Description copied from interface:EquivToReturns true if this object is equivalent to o.
-
equivHashCode
public int equivHashCode()
Returns a hash code for this object, consistent with structural equality.- Specified by:
equivHashCodein interfaceEquivTo
-
toString
public void toString(UnitPrinter up)
-
getBaseBox
public ValueBox getBaseBox()
- Specified by:
getBaseBoxin interfaceArrayRef
-
getIndexBox
public ValueBox getIndexBox()
- Specified by:
getIndexBoxin interfaceArrayRef
-
getUseBoxes
public List<ValueBox> getUseBoxes()
Description copied from interface:ValueReturns a List of boxes corresponding to Values which are used by (ie contained within) this Value.- Specified by:
getUseBoxesin interfaceValue
-
getType
public Type getType()
Description copied from interface:ValueReturns the Soot type of this Value.
-
apply
public void apply(Switch sw)
Description copied from interface:SwitchableCalled when this object is visited.- Specified by:
applyin interfaceArrayRef- Specified by:
applyin interfaceSwitchable
-
convertToBaf
public void convertToBaf(JimpleToBafContext context, List<Unit> out)
- Specified by:
convertToBafin interfaceConvertToBaf
-
-