~ubuntu-branches/ubuntu/saucy/tomcat7/saucy

« back to all changes in this revision

Viewing changes to java/org/apache/tomcat/util/http/parser/Node.java

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-12-06 13:47:08 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20121206134708-xub74b3086g2xwt3
Tags: 7.0.34-0ubuntu1
* New upstream release.
  - d/p/0014-fix-override.patch: Fix FTBFS due to differing dependency
    versions compared to upstream.
* d/p/0015-use-jdbc-pool-default.patch: Make jdbc-pool module the default
  pool implementation for DataSources (LP: #1071817).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
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
8
 
 *
9
 
 *      http://www.apache.org/licenses/LICENSE-2.0
10
 
 *
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.
16
 
 */
17
 
package org.apache.tomcat.util.http.parser;
18
 
 
19
 
/* All AST nodes must implement this interface.  It provides basic
20
 
 machinery for constructing the parent and child relationships
21
 
 between nodes. */
22
 
 
23
 
public interface Node {
24
 
 
25
 
    /**
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.
28
 
     */
29
 
    public void jjtOpen();
30
 
 
31
 
    /**
32
 
     * This method is called after all the child nodes have been added.
33
 
     */
34
 
    public void jjtClose();
35
 
 
36
 
    /**
37
 
     * This pair of methods are used to inform the node of its parent.
38
 
     */
39
 
    public void jjtSetParent(Node n);
40
 
 
41
 
    public Node jjtGetParent();
42
 
 
43
 
    /**
44
 
     * This method tells the node to add its argument to the node's list of
45
 
     * children.
46
 
     */
47
 
    public void jjtAddChild(Node n, int i);
48
 
 
49
 
    /**
50
 
     * This method returns a child node. The children are numbered from zero,
51
 
     * left to right.
52
 
     */
53
 
    public Node jjtGetChild(int i);
54
 
 
55
 
    /** Return the number of children the node has. */
56
 
    public int jjtGetNumChildren();
57
 
 
58
 
    public Object jjtGetValue();
59
 
}