|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FilterVisitor
Filter expression tree node visitor interface. Note that this is a variation of the extrinsic visitor variation. It has the following advantages over the standard visitor pattern:
Method Summary | |
---|---|
boolean |
canVisit(ExprNode node)
Checks to see if a node can be visited. |
java.util.List<ExprNode> |
getOrder(BranchNode node,
java.util.List<ExprNode> children)
Get the array of children to visit sequentially to determine the order of child visitations. |
boolean |
isPrefix()
Determines whether the visitation order is prefix or postfix. |
java.lang.Object |
visit(ExprNode node)
Visits a filter expression AST using a specific visitation order. |
Method Detail |
---|
java.lang.Object visit(ExprNode node)
node
- the node to visit
boolean canVisit(ExprNode node)
node
- the node to be visited
boolean isPrefix()
java.util.List<ExprNode> getOrder(BranchNode node, java.util.List<ExprNode> children)
node
- the parent branch nodechildren
- the child node array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |