Package sootup.core.jimple.common.expr
Class JNewArrayExpr
java.lang.Object
sootup.core.jimple.common.expr.JNewArrayExpr
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.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.@NonNull Type@NonNull ImmediategetSize()@NonNull TypegetType()Returns an instance of ArrayType().getUses()Returns a list of type Value, contains a list of values with sizebooleanbooleantoString()voidtoString(@NonNull StmtPrinter up) Converts a parameter of type StmtPrinter to a string literal.@NonNull JNewArrayExprwithBaseType(@NonNull Type baseType) @NonNull JNewArrayExprMethods 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, 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: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
-
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:AcceptorCalled when this object is visited.- Specified by:
acceptin interfaceAcceptor<ExprVisitor>
-
withBaseType
-
withSize
-
isArrayOfPrimitives
public boolean isArrayOfPrimitives() -
isJNewArrayExpr
public boolean isJNewArrayExpr()- Specified by:
isJNewArrayExprin interfaceExpr
-
asJNewArrayExpr
- Specified by:
asJNewArrayExprin interfaceExpr
-
toJNewArrayExpr
- Specified by:
toJNewArrayExprin interfaceExpr
-