View Javadoc

1   /*
2    * Copyright 2004-2006 the Seasar Foundation and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  /* Generated By:JJTree: Do not edit this line. Node.java */
17  
18  package org.seasar.tuigwaa.cms.core.wiki.engine;
19  
20  /* All AST nodes must implement this interface.  It provides basic
21     machinery for constructing the parent and child relationships
22     between nodes. */
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  }