public abstract class DfExpressionVisitor
extends java.lang.Object
The Visitor pattern allows to visit an expression node or an expression tree, with no need to cast the different kinds of expression.
Constructor and Description |
---|
DfExpressionVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
visit(IDfExpressionSet expr)
Visits an
IDfExpressionSet . |
void |
visit(IDfFullTextExpression expr)
Visits an
IDfFullTextExpression . |
void |
visit(IDfRelativeDateExpression expr)
Visits an
IDfRelativeDateExpression . |
void |
visit(IDfSimpleAttrExpression expr)
Visits an
IDfSimpleAttrExpression . |
void |
visit(IDfValueListAttrExpression expr)
Visits an
IDfValueListAttrExpression . |
void |
visit(IDfValueRangeAttrExpression expr)
Visits an
IDfValueRangeAttrExpression . |
public void visit(IDfExpressionSet expr) throws DfException
IDfExpressionSet
.
This class default implementation iterates over its children and recursively visits the sub-expressions. If the implementer doesn't call super, he can implement his own iterating mechanism.
expr
- The expression visited.DfSearchException
- The exception thrown by the visitor (by default, no such exception is thrown).DfException
public void visit(IDfValueListAttrExpression expr) throws DfException
IDfValueListAttrExpression
.expr
- The expression visited.DfSearchException
- The exception thrown by the visitor.DfException
public void visit(IDfFullTextExpression expr) throws DfException
IDfFullTextExpression
.expr
- The expression visited.DfSearchException
- The exception thrown by the visitor.DfException
public void visit(IDfSimpleAttrExpression expr) throws DfException
IDfSimpleAttrExpression
.expr
- The expression visited.DfSearchException
- The exception thrown by the visitor.DfException
public void visit(IDfRelativeDateExpression expr) throws DfException
IDfRelativeDateExpression
.expr
- The expression visited.DfSearchException
- The exception thrown by the visitor.DfException
public void visit(IDfValueRangeAttrExpression expr) throws DfException
IDfValueRangeAttrExpression
.expr
- The expression visited.DfSearchException
- The exception thrown by the visitor.DfException
Copyright 1994-2023 OpenText Corporation. All rights reserved.