Class JNewArrayExpr

java.lang.Object
sootup.core.jimple.common.expr.JNewArrayExpr
All Implemented Interfaces:
EquivTo, Value, Expr, Acceptor<ExprVisitor>

public final class JNewArrayExpr extends Object implements Expr
An expression that creates a new array of a certain type and a certain size.
  • Constructor Details

  • Method Details

    • equivTo

      public boolean equivTo(Object o, @NonNull JimpleComparator comparator)
      Description copied from interface: EquivTo
      Returns true if this object is equivalent to o according to the given comparator.
      Specified by:
      equivTo in interface EquivTo
    • equivHashCode

      public int equivHashCode()
      Returns a hash code for this object, consistent with structural equality.
      Specified by:
      equivHashCode in interface EquivTo
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public void toString(@NonNull StmtPrinter up)
      Converts a parameter of type StmtPrinter to a string literal.
      Specified by:
      toString in interface Value
    • getBaseType

      public @NonNull Type getBaseType()
    • getSize

      public @NonNull Immediate getSize()
    • getUses

      public @NonNull Stream<Value> getUses()
      Returns a list of type Value, contains a list of values with size
      Specified by:
      getUses in interface Value
      Returns:
    • getType

      public @NonNull Type getType()
      Returns an instance of ArrayType().
      Specified by:
      getType in interface Value
    • accept

      public <V extends ExprVisitor> V accept(@NonNull V v)
      Description copied from interface: Acceptor
      Called when this object is visited.
      Specified by:
      accept in interface Acceptor<ExprVisitor>
    • withBaseType

      public @NonNull JNewArrayExpr withBaseType(@NonNull Type baseType)
    • withSize

      public @NonNull JNewArrayExpr withSize(@NonNull Immediate size)
    • isArrayOfPrimitives

      public boolean isArrayOfPrimitives()