Package eu.clarin.sru.server.fcs.parser
Class QueryVisitorAdapter
- java.lang.Object
-
- eu.clarin.sru.server.fcs.parser.QueryVisitorAdapter
-
- All Implemented Interfaces:
QueryVisitor
public class QueryVisitorAdapter extends Object implements QueryVisitor
Convenience class to implement FCS-QL expression tree visitors. Default method implementations do nothing.
-
-
Constructor Summary
Constructors Constructor Description QueryVisitorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visit(Expression node)
Visit a simple expression node.void
visit(ExpressionAnd node)
Visit a and expression node.void
visit(ExpressionGroup node)
Visit a group expression node.void
visit(ExpressionNot node)
Visit a not expression node.void
visit(ExpressionOr node)
Visit a or expression node.void
visit(ExpressionWildcard node)
Visit a wildcard expression node.void
visit(QueryDisjunction node)
Visit a or query node.void
visit(QueryGroup node)
Visit a group query node.void
visit(QuerySegment node)
Visit a segment query node.void
visit(QuerySequence node)
Visit a sequence query node.void
visit(QueryWithWithin node)
Visit a query with within node.void
visit(SimpleWithin node)
Visit a simple within node.
-
-
-
Method Detail
-
visit
public void visit(QuerySegment node)
Description copied from interface:QueryVisitor
Visit a segment query node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
visit
public void visit(QueryGroup node)
Description copied from interface:QueryVisitor
Visit a group query node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
visit
public void visit(QuerySequence node)
Description copied from interface:QueryVisitor
Visit a sequence query node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
visit
public void visit(QueryDisjunction node)
Description copied from interface:QueryVisitor
Visit a or query node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
visit
public void visit(QueryWithWithin node)
Description copied from interface:QueryVisitor
Visit a query with within node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
visit
public void visit(Expression node)
Description copied from interface:QueryVisitor
Visit a simple expression node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
visit
public void visit(ExpressionWildcard node)
Description copied from interface:QueryVisitor
Visit a wildcard expression node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
visit
public void visit(ExpressionGroup node)
Description copied from interface:QueryVisitor
Visit a group expression node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
visit
public void visit(ExpressionOr node)
Description copied from interface:QueryVisitor
Visit a or expression node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
visit
public void visit(ExpressionAnd node)
Description copied from interface:QueryVisitor
Visit a and expression node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
visit
public void visit(ExpressionNot node)
Description copied from interface:QueryVisitor
Visit a not expression node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
visit
public void visit(SimpleWithin node)
Description copied from interface:QueryVisitor
Visit a simple within node.- Specified by:
visit
in interfaceQueryVisitor
- Parameters:
node
- the node to visit
-
-