Class JLengthExpr

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

public final class JLengthExpr extends AbstractUnopExpr
An expression that returns the length of an array.
  • Constructor Details

    • JLengthExpr

      public JLengthExpr(@NonNull Immediate op)
  • 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.
    • equivHashCode

      public int equivHashCode()
      Returns a hash code for this object, consistent with structural equality.
    • toString

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

      public void toString(@NonNull StmtPrinter up)
    • getType

      public @NonNull PrimitiveType getType()
      Description copied from interface: Value
      Returns the Soot type of this Value.
    • accept

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

      public @NonNull JLengthExpr withOp(@NonNull Immediate op)