Package sootup.core.jimple.common.expr
Class JNewMultiArrayExpr
java.lang.Object
sootup.core.jimple.common.expr.JNewMultiArrayExpr
Like
JNewArrayExpr, but for multi-dimensional arrays.-
Constructor Summary
ConstructorsConstructorDescriptionJNewMultiArrayExpr(@NonNull ArrayType type, @NonNull List<Immediate> sizes) Initiates a JNewMultiArrayExpr. -
Method Summary
Modifier and TypeMethodDescription<V extends ExprVisitor>
Vaccept(@NonNull V v) Called when this object is visited.voidcollectUses(List<Value> collector) Collects all values used by this value into the given list.intReturns a hash code for this object, consistent with structural equality.booleanequivTo(Object o, @NonNull JimpleComparator comparator) Returns true if this object is equivalent to o according to the given comparator.getSize(int index) intgetSizes()Returns a list of Values.@NonNull TypegetType()Returns the Soot type of this Value.booleanbooleantoString()voidtoString(@NonNull StmtPrinter up) Appends a string representation of this value to the given printer.@NonNull JNewMultiArrayExprwithBaseType(@NonNull ArrayType baseType) @NonNull JNewMultiArrayExprMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface sootup.core.jimple.common.expr.Expr
asJAddExpr, asJAndExpr, asJCastExpr, asJCmpExpr, asJCmpgExpr, asJCmplExpr, asJDivExpr, asJDynamicInvokeExpr, asJEqExpr, asJGeExpr, asJGtExpr, asJInstanceOfExpr, asJInterfaceInvokeExpr, asJLeExpr, asJLengthExpr, asJLtExpr, asJMulExpr, asJNeExpr, asJNegExpr, asJNewArrayExpr, asJNewExpr, asJOrExpr, asJPhiExpr, asJRemExpr, asJShlExpr, asJShrExpr, asJSpecialInvokeExpr, asJStaticInvokeExpr, asJSubExpr, asJUshrExpr, asJVirtualInvokeExpr, asJXorExpr, isJAddExpr, isJAndExpr, isJCastExpr, isJCmpExpr, isJCmpgExpr, isJCmplExpr, isJDivExpr, isJDynamicInvokeExpr, isJEqExpr, isJGeExpr, isJGtExpr, isJInstanceOfExpr, isJInterfaceInvokeExpr, isJLeExpr, isJLengthExpr, isJLtExpr, isJMulExpr, isJNeExpr, isJNegExpr, isJNewArrayExpr, isJNewExpr, isJOrExpr, isJPhiExpr, isJRemExpr, isJShlExpr, isJShrExpr, isJSpecialInvokeExpr, isJStaticInvokeExpr, isJSubExpr, isJUshrExpr, isJVirtualInvokeExpr, isJXorExpr, toJAddExpr, toJAndExpr, toJCastExpr, toJCmpExpr, toJCmpgExpr, toJCmplExpr, toJDivExpr, toJDynamicInvokeExpr, toJEqExpr, toJGeExpr, toJGtExpr, toJInstanceOfExpr, toJInterfaceInvokeExpr, toJLeExpr, toJLengthExpr, toJLtExpr, toJMulExpr, toJNeExpr, toJNegExpr, toJNewArrayExpr, toJNewExpr, toJOrExpr, toJPhiExpr, toJRemExpr, toJShlExpr, toJShrExpr, toJSpecialInvokeExpr, toJStaticInvokeExpr, toJSubExpr, toJUshrExpr, toJVirtualInvokeExpr, toJXorExpr
-
Constructor Details
-
JNewMultiArrayExpr
Initiates a JNewMultiArrayExpr.- Parameters:
type- the type of the arraysizes- the sizes
-
-
Method Details
-
equivTo
Description copied from interface:EquivToReturns true if this object is equivalent to o according to the given comparator. -
equivHashCode
public int equivHashCode()Returns a hash code for this object, consistent with structural equality.- Specified by:
equivHashCodein interfaceEquivTo- Returns:
- a structural hash code consistent with equivTo
-
toString
-
toString
Description copied from interface:ValueAppends a string representation of this value to the given printer. -
getBaseType
-
getSize
-
getSizeCount
public int getSizeCount() -
getSizes
Returns a list of Values. -
collectUses
Description copied from interface:ValueCollects all values used by this value into the given list.- Specified by:
collectUsesin interfaceValue
-
getType
Description copied from interface:ValueReturns the Soot type of this Value. -
accept
Description copied from interface:AcceptorCalled when this object is visited.- Specified by:
acceptin interfaceAcceptor<ExprVisitor>- Type Parameters:
V- the concrete visitor type- Parameters:
v- the visitor processing this object- Returns:
- the visitor after processing
-
withBaseType
-
withSizes
-
isArrayOfPrimitives
public boolean isArrayOfPrimitives() -
isJNewMultiArrayExpr
public boolean isJNewMultiArrayExpr()- Specified by:
isJNewMultiArrayExprin interfaceExpr
-
asJNewMultiArrayExpr
- Specified by:
asJNewMultiArrayExprin interfaceExpr
-
toJNewMultiArrayExpr
- Specified by:
toJNewMultiArrayExprin interfaceExpr
-