Package com.atlassian.query.operand
Interface OperandVisitor<R>
- Type Parameters:
R
- the return type from the visitor methods. Can be set toVoid
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 Summary
Modifier and TypeMethodDescriptionvisit
(EmptyOperand empty) The method called when visiting anEmptyOperand
.visit
(FunctionOperand function) The method called when visiting aFunctionOperand
.visit
(MultiValueOperand multiValue) The method called when visiting anMultiValueOperand
.visit
(SingleValueOperand singleValueOperand) The method called when visiting anSingleValueOperand
.
-
Method Details
-
visit
The method called when visiting anEmptyOperand
.- Parameters:
empty
- the operand being visited.- Returns:
- the value to return from the operand visit.
-
visit
The method called when visiting aFunctionOperand
.- Parameters:
function
- the operand being visited.- Returns:
- the value to return from the operand visit.
-
visit
The method called when visiting anMultiValueOperand
.- Parameters:
multiValue
- the operand being visited.- Returns:
- the value to return from the operand visit.
-
visit
The method called when visiting anSingleValueOperand
.- Parameters:
singleValueOperand
- the operand being visited.- Returns:
- the value to return from the operand visit.
-