|
||||||||||
| 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. |
List<ExprNode> |
getOrder(BranchNode node,
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. |
Object |
visit(ExprNode node)
Visits a filter expression AST using a specific visitation order. |
| Method Detail |
|---|
Object visit(ExprNode node)
node - the node to visit
boolean canVisit(ExprNode node)
node - the node to be visited
boolean isPrefix()
List<ExprNode> getOrder(BranchNode node,
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 | |||||||||