Package sootup.core.jimple.common.expr
Class JNewMultiArrayExpr
java.lang.Object
sootup.core.jimple.common.expr.JNewMultiArrayExpr
- All Implemented Interfaces:
EquivTo
,Value
,Expr
,Acceptor<ExprVisitor>
Like
JNewArrayExpr
, but for multi-dimensional arrays.-
Constructor Summary
ConstructorDescriptionJNewMultiArrayExpr
(ArrayType type, List<Immediate> sizes) Initiates a JNewMultiArrayExpr. -
Method Summary
Modifier and TypeMethodDescription<V extends ExprVisitor>
Vaccept
(V v) Called when this object is visited.int
Returns a hash code for this object, consistent with structural equality.boolean
equivTo
(Object o, JimpleComparator comparator) Returns true if this object is equivalent to o according to the given comparator.getSize
(int index) int
getSizes()
Returns a list of Values.getType()
Returns the Soot type of this Value.getUses()
Returns a List of Locals,FieldRefs,ArrayRefs which are used by (ie contained within) this Expression or Reference.boolean
toString()
void
toString
(StmtPrinter up) withBaseType
(ArrayType baseType)
-
Constructor Details
-
JNewMultiArrayExpr
Initiates a JNewMultiArrayExpr.- Parameters:
type
- the type of the arraysizes
- the sizes
-
-
Method Details
-
equivTo
Description copied from interface:EquivTo
Returns 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:
equivHashCode
in interfaceEquivTo
-
toString
-
toString
-
getBaseType
-
getSize
-
getSizeCount
public int getSizeCount() -
getSizes
Returns a list of Values. -
getUses
Description copied from interface:Value
Returns a List of Locals,FieldRefs,ArrayRefs which are used by (ie contained within) this Expression or Reference. -
getType
Description copied from interface:Value
Returns the Soot type of this Value. -
accept
Description copied from interface:Acceptor
Called when this object is visited.- Specified by:
accept
in interfaceAcceptor<ExprVisitor>
-
withBaseType
-
withSizes
-
isArrayOfPrimitives
public boolean isArrayOfPrimitives()
-