KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > el > parser > Node


1 /* Generated By:JJTree: Do not edit this line. Node.java */
2
3 /*
4  * Licensed to the Apache Software Foundation (ASF) under one or more
5  * contributor license agreements. See the NOTICE file distributed with
6  * this work for additional information regarding copyright ownership.
7  * The ASF licenses this file to You under the Apache License, Version 2.0
8  * (the "License"); you may not use this file except in compliance with
9  * the License. You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */

19
20 package org.apache.el.parser;
21
22 import javax.el.ELException;
23 import javax.el.MethodInfo;
24
25 import org.apache.el.lang.EvaluationContext;
26
27
28 /* All AST nodes must implement this interface. It provides basic
29    machinery for constructing the parent and child relationships
30    between nodes. */

31
32 /**
33  * @author Jacob Hookom [jacob@hookom.net]
34  * @version $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: markt $
35  */

36 public interface Node {
37
38   /** This method is called after the node has been made the current
39     node. It indicates that child nodes can now be added to it. */

40   public void jjtOpen();
41
42   /** This method is called after all the child nodes have been
43     added. */

44   public void jjtClose();
45
46   /** This pair of methods are used to inform the node of its
47     parent. */

48   public void jjtSetParent(Node n);
49   public Node jjtGetParent();
50
51   /** This method tells the node to add its argument to the node's
52     list of children. */

53   public void jjtAddChild(Node n, int i);
54
55   /** This method returns a child node. The children are numbered
56      from zero, left to right. */

57   public Node jjtGetChild(int i);
58
59   /** Return the number of children the node has. */
60   public int jjtGetNumChildren();
61   
62   public String JavaDoc getImage();
63   
64   public Object JavaDoc getValue(EvaluationContext ctx) throws ELException;
65   public void setValue(EvaluationContext ctx, Object JavaDoc value) throws ELException;
66   public Class JavaDoc getType(EvaluationContext ctx) throws ELException;
67   public boolean isReadOnly(EvaluationContext ctx) throws ELException;
68   public void accept(NodeVisitor visitor) throws Exception JavaDoc;
69   public MethodInfo getMethodInfo(EvaluationContext ctx, Class JavaDoc[] paramTypes) throws ELException;
70   public Object JavaDoc invoke(EvaluationContext ctx, Class JavaDoc[] paramTypes, Object JavaDoc[] paramValues) throws ELException;
71 }
72
Popular Tags