2
* Licensed to the Apache Software Foundation (ASF) under one or more
3
* contributor license agreements. See the NOTICE file distributed with
4
* this work for additional information regarding copyright ownership.
5
* The ASF licenses this file to You under the Apache License, Version 2.0
6
* (the "License"); you may not use this file except in compliance with
7
* the License. You may obtain a copy of the License at
9
* http://www.apache.org/licenses/LICENSE-2.0
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
17
package org.apache.tomcat.util.http.parser;
19
/* All AST nodes must implement this interface. It provides basic
20
machinery for constructing the parent and child relationships
23
public interface Node {
26
* This method is called after the node has been made the current node. It
27
* indicates that child nodes can now be added to it.
29
public void jjtOpen();
32
* This method is called after all the child nodes have been added.
34
public void jjtClose();
37
* This pair of methods are used to inform the node of its parent.
39
public void jjtSetParent(Node n);
41
public Node jjtGetParent();
44
* This method tells the node to add its argument to the node's list of
47
public void jjtAddChild(Node n, int i);
50
* This method returns a child node. The children are numbered from zero,
53
public Node jjtGetChild(int i);
55
/** Return the number of children the node has. */
56
public int jjtGetNumChildren();
58
public Object jjtGetValue();