1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.seasar.tuigwaa.cms.core.wiki.engine;
19
20
21
22
23
24 public interface Node {
25
26 /*** This method is called after the node has been made the current
27 node. It indicates that child nodes can now be added to it. */
28 public void jjtOpen();
29
30 /*** This method is called after all the child nodes have been
31 added. */
32 public void jjtClose();
33
34 /*** This pair of methods are used to inform the node of its
35 parent. */
36 public void jjtSetParent(Node n);
37 public Node jjtGetParent();
38
39 /*** This method tells the node to add its argument to the node's
40 list of children. */
41 public void jjtAddChild(Node n, int i);
42
43 /*** This method returns a child node. The children are numbered
44 from zero, left to right. */
45 public Node jjtGetChild(int i);
46
47 /*** Return the number of children the node has. */
48 public int jjtGetNumChildren();
49
50 /*** Accept the visitor. **/
51 public Object jjtAccept(WikiParserVisitor visitor, Object data);
52 }