Package sootup.core.jimple.common.expr
Class JNewArrayExpr
java.lang.Object
sootup.core.jimple.common.expr.JNewArrayExpr
- All Implemented Interfaces:
EquivTo
,Value
,Expr
,Acceptor<ExprVisitor>
An expression that creates a new array of a certain type and a certain size.
-
Constructor Summary
ConstructorDescriptionJNewArrayExpr
(Type baseType, Immediate size, IdentifierFactory identifierFactory) -
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()
getType()
Returns an instance of ArrayType().getUses()
Returns a list of type Value, contains a list of values with sizeboolean
toString()
void
toString
(StmtPrinter up) Converts a parameter of type StmtPrinter to a string literal.withBaseType
(Type baseType)
-
Constructor Details
-
JNewArrayExpr
-
-
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
Converts a parameter of type StmtPrinter to a string literal. -
getBaseType
-
getSize
-
getUses
Returns a list of type Value, contains a list of values with size -
getType
Returns an instance of ArrayType(). -
accept
Description copied from interface:Acceptor
Called when this object is visited.- Specified by:
accept
in interfaceAcceptor<ExprVisitor>
-
withBaseType
-
withSize
-
isArrayOfPrimitives
public boolean isArrayOfPrimitives()
-