Interface OperandVisitor<R>

Type Parameters:
R - the return type from the visitor methods. Can be set to Void to indicate that the return value is not important.
All Known Implementing Classes:
ArgumentExtractingOperandVisitor, DefaultOperandSanitisingVisitor

public interface OperandVisitor<R>
A visitor that the caller to perform operations on Operands.
  • Method Details

    • visit

      R visit(EmptyOperand empty)
      The method called when visiting an EmptyOperand.
      Parameters:
      empty - the operand being visited.
      Returns:
      the value to return from the operand visit.
    • visit

      R visit(FunctionOperand function)
      The method called when visiting a FunctionOperand.
      Parameters:
      function - the operand being visited.
      Returns:
      the value to return from the operand visit.
    • visit

      R visit(MultiValueOperand multiValue)
      The method called when visiting an MultiValueOperand.
      Parameters:
      multiValue - the operand being visited.
      Returns:
      the value to return from the operand visit.
    • visit

      R visit(SingleValueOperand singleValueOperand)
      The method called when visiting an SingleValueOperand.
      Parameters:
      singleValueOperand - the operand being visited.
      Returns:
      the value to return from the operand visit.