Class JAddExpr

All Implemented Interfaces:
EquivTo, Expr, Value, JimpleIR, Acceptor<ExprVisitor>

public final class JAddExpr extends AbstractFloatBinopExpr
An expression that adds two numbers.
  • Constructor Details

  • Method Details

    • getSymbol

      public @NonNull String getSymbol()
      Description copied from class: AbstractBinopExpr
      Returns the unique symbol for an operator.
      Specified by:
      getSymbol in class AbstractBinopExpr
      Returns:
      the operator symbol string (e.g., "+", "-")
    • accept

      public <V extends ExprVisitor> V accept(@NonNull V v)
      Description copied from interface: Acceptor
      Called when this object is visited.
      Type Parameters:
      V - the concrete visitor type
      Parameters:
      v - the visitor processing this object
      Returns:
      the visitor after processing
    • withOp1

      public @NonNull JAddExpr withOp1(@NonNull Immediate op1)
      Description copied from class: AbstractBinopExpr
      Returns a copy of this expression with the left operand replaced.
      Specified by:
      withOp1 in class AbstractBinopExpr
    • withOp2

      public @NonNull JAddExpr withOp2(@NonNull Immediate op2)
      Description copied from class: AbstractBinopExpr
      Returns a copy of this expression with the right operand replaced.
      Specified by:
      withOp2 in class AbstractBinopExpr
    • isJAddExpr

      public boolean isJAddExpr()
    • asJAddExpr

      public JAddExpr asJAddExpr()
    • toJAddExpr

      public Optional<JAddExpr> toJAddExpr()