Class JNegExpr

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

public final class JNegExpr extends AbstractUnopExpr
An expression that negates its operand (-).
  • 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.
    • 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

      @Nonnull public Type 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

      @Nonnull public JNegExpr withOp(@Nonnull Immediate op)