|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jsieve.SieveParserVisitorImpl
public class SieveParserVisitorImpl
Class SieveParserVisitorImpl defines the behaviour for each visited node in the Sieve grammar. Each method corresponds to a node type and is invoked when a node of that type is evaluated.
In essence, this class translates between the nodes operated on by the JavaCC generated classes and the Sieve classes operated upon by the Commands, Tests and Comparators. A visit to the start node, ASTstart, triggers evaluation of all of its descendants.
See https://javacc.dev.java.net/doc/JJTree.html for indepth information about Visitor support.
Note that this class is not thread safe. It's use should be restricted to a single thread for the duration of a visit.
Constructor Summary | |
---|---|
SieveParserVisitorImpl(SieveContext context)
Constructor for NodeVisitor. |
Method Summary | |
---|---|
java.lang.Object |
visit(ASTargument node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTarguments node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTblock node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTcommand node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTcommands node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTstart node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTstring_list node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTstring node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTtest_list node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTtest node,
java.lang.Object data)
|
java.lang.Object |
visit(SimpleNode node,
java.lang.Object data)
|
protected java.lang.Object |
visitChildren(SimpleNode node,
java.lang.Object data)
Method visitChildren adds the children of the node to the passed List. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SieveParserVisitorImpl(SieveContext context)
Method Detail |
---|
protected java.lang.Object visitChildren(SimpleNode node, java.lang.Object data) throws SieveException
node
- data
- -
Assumes a List
SieveException
public java.lang.Object visit(ASTargument node, java.lang.Object data) throws SieveException
visit
in interface SieveParserVisitor
SieveException
SieveParserVisitor.visit(ASTargument, Object)
public java.lang.Object visit(ASTarguments node, java.lang.Object data) throws SieveException
visit
in interface SieveParserVisitor
SieveException
SieveParserVisitor.visit(ASTarguments, Object)
public java.lang.Object visit(ASTblock node, java.lang.Object data) throws SieveException
visit
in interface SieveParserVisitor
SieveException
SieveParserVisitor.visit(ASTblock, Object)
public java.lang.Object visit(ASTcommand node, java.lang.Object data) throws SieveException
visit
in interface SieveParserVisitor
SieveException
SieveParserVisitor.visit(ASTcommand, Object)
public java.lang.Object visit(ASTcommands node, java.lang.Object data) throws SieveException
visit
in interface SieveParserVisitor
SieveException
SieveParserVisitor.visit(ASTcommands, Object)
public java.lang.Object visit(ASTstart node, java.lang.Object data) throws SieveException
visit
in interface SieveParserVisitor
SieveException
SieveParserVisitor.visit(ASTstart, Object)
public java.lang.Object visit(ASTstring_list node, java.lang.Object data) throws SieveException
visit
in interface SieveParserVisitor
SieveException
SieveParserVisitor.visit(ASTstring_list, Object)
public java.lang.Object visit(ASTstring node, java.lang.Object data)
visit
in interface SieveParserVisitor
SieveParserVisitor.visit(ASTstring, Object)
public java.lang.Object visit(ASTtest_list node, java.lang.Object data) throws SieveException
visit
in interface SieveParserVisitor
SieveException
SieveParserVisitor.visit(ASTtest_list, Object)
public java.lang.Object visit(ASTtest node, java.lang.Object data) throws SieveException
visit
in interface SieveParserVisitor
SieveException
SieveParserVisitor.visit(ASTtest, Object)
public java.lang.Object visit(SimpleNode node, java.lang.Object data) throws SieveException
visit
in interface SieveParserVisitor
SieveException
SieveParserVisitor.visit(SimpleNode, Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |