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
ConstructorsConstructorDescriptionJNewArrayExpr
(@NonNull Type baseType, @NonNull Immediate size, @NonNull IdentifierFactory identifierFactory) -
Method Summary
Modifier and TypeMethodDescription<V extends ExprVisitor>
Vaccept
(@NonNull V v) Called when this object is visited.int
Returns a hash code for this object, consistent with structural equality.boolean
equivTo
(Object o, @NonNull JimpleComparator comparator) Returns true if this object is equivalent to o according to the given comparator.@NonNull Type
@NonNull Immediate
getSize()
@NonNull Type
getType()
Returns an instance of ArrayType().getUses()
Returns a list of type Value, contains a list of values with sizeboolean
boolean
toString()
void
toString
(@NonNull StmtPrinter up) Converts a parameter of type StmtPrinter to a string literal.@NonNull JNewArrayExpr
withBaseType
(@NonNull Type baseType) @NonNull JNewArrayExpr
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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, asJNewExpr, asJNewMultiArrayExpr, 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, isJNewExpr, isJNewMultiArrayExpr, 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, toJNewExpr, toJNewMultiArrayExpr, toJOrExpr, toJPhiExpr, toJRemExpr, toJShlExpr, toJShrExpr, toJSpecialInvokeExpr, toJStaticInvokeExpr, toJSubExpr, toJUshrExpr, toJVirtualInvokeExpr, toJXorExpr
-
Constructor Details
-
JNewArrayExpr
public JNewArrayExpr(@NonNull Type baseType, @NonNull Immediate size, @NonNull IdentifierFactory identifierFactory)
-
-
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() -
isJNewArrayExpr
public boolean isJNewArrayExpr()- Specified by:
isJNewArrayExpr
in interfaceExpr
-
asJNewArrayExpr
- Specified by:
asJNewArrayExpr
in interfaceExpr
-
toJNewArrayExpr
- Specified by:
toJNewArrayExpr
in interfaceExpr
-