| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Node |
|
| 0.0;0 |
| 1 | /* Generated By:JJTree: Do not edit this line. Node.java */ | |
| 2 | ||
| 3 | package org.webslinger.ext.wiki.parser; | |
| 4 | ||
| 5 | import java.util.ListIterator; | |
| 6 | ||
| 7 | /* All AST nodes must implement this interface. It provides basic | |
| 8 | machinery for constructing the parent and child relationships | |
| 9 | between nodes. */ | |
| 10 | ||
| 11 | public interface Node extends Iterable<Node> { | |
| 12 | ||
| 13 | /** This method is called after the node has been made the current | |
| 14 | node. It indicates that child nodes can now be added to it. */ | |
| 15 | public void jjtOpen(); | |
| 16 | ||
| 17 | /** This method is called after all the child nodes have been | |
| 18 | added. */ | |
| 19 | public void jjtClose(); | |
| 20 | ||
| 21 | /** This pair of methods are used to inform the node of its | |
| 22 | parent. */ | |
| 23 | public void jjtSetParent(Node n); | |
| 24 | public Node jjtGetParent(); | |
| 25 | ||
| 26 | /** This method tells the node to add its argument to the node's | |
| 27 | list of children. */ | |
| 28 | public void jjtAddChild(Node n, int i); | |
| 29 | ||
| 30 | public void jjtRemoveChild(int i); | |
| 31 | ||
| 32 | /** This method returns a child node. The children are numbered | |
| 33 | from zero, left to right. */ | |
| 34 | public Node jjtGetChild(int i); | |
| 35 | ||
| 36 | /** Return the number of children the node has. */ | |
| 37 | public int jjtGetNumChildren(); | |
| 38 | ||
| 39 | /** Accept the visitor. **/ | |
| 40 | public Object jjtAccept(WikiVisitor visitor, Object data); | |
| 41 | ||
| 42 | public ListIterator<Node> getChildrenIterator(); | |
| 43 | public ListIterator<Node> iterator(); | |
| 44 | ||
| 45 | public Token getFirstToken(); | |
| 46 | public void setFirstToken(Token firstToken); | |
| 47 | ||
| 48 | public Token getLastToken(); | |
| 49 | public void setLastToken(Token lastToken); | |
| 50 | } |