Package soot.jimple.internal
Class AbstractNewMultiArrayExpr
- java.lang.Object
-
- soot.jimple.internal.AbstractNewMultiArrayExpr
-
- All Implemented Interfaces:
Serializable,EquivTo,AnyNewExpr,ConvertToBaf,Expr,NewMultiArrayExpr,Switchable,Value
- Direct Known Subclasses:
DNewMultiArrayExpr,GNewMultiArrayExpr,JNewMultiArrayExpr
public abstract class AbstractNewMultiArrayExpr extends Object implements NewMultiArrayExpr, ConvertToBaf
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractNewMultiArrayExpr(ArrayType type, ValueBox[] sizeBoxes)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidapply(Switch sw)Called when this object is visited.abstract 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.ArrayTypegetBaseType()ValuegetSize(int index)ValueBoxgetSizeBox(int index)intgetSizeCount()List<Value>getSizes()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.voidsetBaseType(ArrayType baseType)voidsetSize(int index, Value size)StringtoString()voidtoString(UnitPrinter up)
-
-
-
Method Detail
-
clone
public abstract Object clone()
Description copied from interface:ValueReturns a clone of this Value.
-
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)
-
getBaseType
public ArrayType getBaseType()
- Specified by:
getBaseTypein interfaceNewMultiArrayExpr
-
setBaseType
public void setBaseType(ArrayType baseType)
- Specified by:
setBaseTypein interfaceNewMultiArrayExpr
-
getSizeBox
public ValueBox getSizeBox(int index)
- Specified by:
getSizeBoxin interfaceNewMultiArrayExpr
-
getSizeCount
public int getSizeCount()
- Specified by:
getSizeCountin interfaceNewMultiArrayExpr
-
getSize
public Value getSize(int index)
- Specified by:
getSizein interfaceNewMultiArrayExpr
-
getSizes
public List<Value> getSizes()
- Specified by:
getSizesin interfaceNewMultiArrayExpr
-
setSize
public void setSize(int index, Value size)- Specified by:
setSizein interfaceNewMultiArrayExpr
-
getUseBoxes
public final 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.- Specified by:
getTypein interfaceNewMultiArrayExpr- Specified by:
getTypein interfaceValue
-
apply
public void apply(Switch sw)
Description copied from interface:SwitchableCalled when this object is visited.- Specified by:
applyin interfaceNewMultiArrayExpr- Specified by:
applyin interfaceSwitchable
-
convertToBaf
public void convertToBaf(JimpleToBafContext context, List<Unit> out)
- Specified by:
convertToBafin interfaceConvertToBaf
-
-