6
|
1 |
/*
|
|
2 |
* reserved comment block
|
|
3 |
* DO NOT REMOVE OR ALTER!
|
|
4 |
*/
|
|
5 |
/*
|
|
6 |
* Copyright 1999-2004 The Apache Software Foundation.
|
|
7 |
*
|
|
8 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9 |
* you may not use this file except in compliance with the License.
|
|
10 |
* You may obtain a copy of the License at
|
|
11 |
*
|
|
12 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13 |
*
|
|
14 |
* Unless required by applicable law or agreed to in writing, software
|
|
15 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17 |
* See the License for the specific language governing permissions and
|
|
18 |
* limitations under the License.
|
|
19 |
*/
|
|
20 |
/*
|
|
21 |
* $Id: ExpressionNode.java,v 1.1.2.1 2005/08/01 01:30:15 jeffsuttor Exp $
|
|
22 |
*/
|
|
23 |
package com.sun.org.apache.xpath.internal;
|
|
24 |
|
|
25 |
import javax.xml.transform.SourceLocator;
|
|
26 |
|
|
27 |
/**
|
|
28 |
* A class that implements this interface can construct expressions,
|
|
29 |
* give information about child and parent expressions,
|
|
30 |
* and give the originating source information. A class that implements
|
|
31 |
* this interface does not lay any claim to being directly executable.
|
|
32 |
*
|
|
33 |
* <p>Note: This interface should not be considered stable. Only exprSetParent
|
|
34 |
* and exprGetParent can be counted on to work reliably. Work in progress.</p>
|
|
35 |
*/
|
|
36 |
public interface ExpressionNode extends SourceLocator
|
|
37 |
{
|
|
38 |
/** This pair of methods are used to inform the node of its
|
|
39 |
parent. */
|
|
40 |
public void exprSetParent(ExpressionNode n);
|
|
41 |
public ExpressionNode exprGetParent();
|
|
42 |
|
|
43 |
/** This method tells the node to add its argument to the node's
|
|
44 |
list of children. */
|
|
45 |
public void exprAddChild(ExpressionNode n, int i);
|
|
46 |
|
|
47 |
/** This method returns a child node. The children are numbered
|
|
48 |
from zero, left to right. */
|
|
49 |
public ExpressionNode exprGetChild(int i);
|
|
50 |
|
|
51 |
/** Return the number of children the node has. */
|
|
52 |
public int exprGetNumChildren();
|
|
53 |
}
|