nitind | 8d3be7f | 2005-08-24 14:50:31 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2005 BEA Systems and others. |
| 3 | * All rights reserved. This program and the accompanying materials |
| 4 | * are made available under the terms of the Eclipse Public License v1.0 |
| 5 | * which accompanies this distribution, and is available at |
| 6 | * http://www.eclipse.org/legal/epl-v10.html |
| 7 | * |
| 8 | * Contributors: |
| 9 | * BEA Systems - initial implementation |
| 10 | * |
| 11 | *******************************************************************************/ |
david_williams | aa4ae93 | 2005-06-01 07:09:52 +0000 | [diff] [blame] | 12 | /* Generated By:JJTree: Do not edit this line. Node.java */ |
| 13 | |
| 14 | package org.eclipse.jst.jsp.core.internal.java.jspel; |
| 15 | |
| 16 | /* All AST nodes must implement this interface. It provides basic |
| 17 | machinery for constructing the parent and child relationships |
| 18 | between nodes. */ |
| 19 | |
| 20 | public interface Node { |
| 21 | |
| 22 | /** This method is called after the node has been made the current |
| 23 | node. It indicates that child nodes can now be added to it. */ |
| 24 | public void jjtOpen(); |
| 25 | |
| 26 | /** This method is called after all the child nodes have been |
| 27 | added. */ |
| 28 | public void jjtClose(); |
| 29 | |
| 30 | /** This pair of methods are used to inform the node of its |
| 31 | parent. */ |
| 32 | public void jjtSetParent(Node n); |
| 33 | public Node jjtGetParent(); |
| 34 | |
| 35 | /** This method tells the node to add its argument to the node's |
| 36 | list of children. */ |
| 37 | public void jjtAddChild(Node n, int i); |
| 38 | |
| 39 | /** This method returns a child node. The children are numbered |
| 40 | from zero, left to right. */ |
| 41 | public Node jjtGetChild(int i); |
| 42 | |
| 43 | /** Return the number of children the node has. */ |
| 44 | public int jjtGetNumChildren(); |
| 45 | |
| 46 | /** Accept the visitor. **/ |
| 47 | public Object jjtAccept(JSPELParserVisitor visitor, Object data); |
| 48 | } |