View Javadoc

1   package org.apache.commons.ognl;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  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,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  /*
23  *  $Id: NodeVisitor.java 1194866 2011-10-29 10:51:32Z mcucchiara $
24  */
25  public interface NodeVisitor<R, P>
26  {
27      R visit( ASTSequence node, P data )
28          throws OgnlException;
29  
30      R visit( ASTAssign node, P data )
31          throws OgnlException;
32  
33      R visit( ASTTest node, P data )
34          throws OgnlException;
35  
36      R visit( ASTOr node, P data )
37          throws OgnlException;
38  
39      R visit( ASTAnd node, P data )
40          throws OgnlException;
41  
42      R visit( ASTBitOr node, P data )
43          throws OgnlException;
44  
45      R visit( ASTXor node, P data )
46          throws OgnlException;
47  
48      R visit( ASTBitAnd node, P data )
49          throws OgnlException;
50  
51      R visit( ASTEq node, P data )
52          throws OgnlException;
53  
54      R visit( ASTNotEq node, P data )
55          throws OgnlException;
56  
57      R visit( ASTLess node, P data )
58          throws OgnlException;
59  
60      R visit( ASTGreater node, P data )
61          throws OgnlException;
62  
63      R visit( ASTLessEq node, P data )
64          throws OgnlException;
65  
66      R visit( ASTGreaterEq node, P data )
67          throws OgnlException;
68  
69      R visit( ASTIn node, P data )
70          throws OgnlException;
71  
72      R visit( ASTNotIn node, P data )
73          throws OgnlException;
74  
75      R visit( ASTShiftLeft node, P data )
76          throws OgnlException;
77  
78      R visit( ASTShiftRight node, P data )
79          throws OgnlException;
80  
81      R visit( ASTUnsignedShiftRight node, P data )
82          throws OgnlException;
83  
84      R visit( ASTAdd node, P data )
85          throws OgnlException;
86  
87      R visit( ASTSubtract node, P data )
88          throws OgnlException;
89  
90      R visit( ASTMultiply node, P data )
91          throws OgnlException;
92  
93      R visit( ASTDivide node, P data )
94          throws OgnlException;
95  
96      R visit( ASTRemainder node, P data )
97          throws OgnlException;
98  
99      R visit( ASTNegate node, P data )
100         throws OgnlException;
101 
102     R visit( ASTBitNegate node, P data )
103         throws OgnlException;
104 
105     R visit( ASTNot node, P data )
106         throws OgnlException;
107 
108     R visit( ASTInstanceof node, P data )
109         throws OgnlException;
110 
111     R visit( ASTChain node, P data )
112         throws OgnlException;
113 
114     R visit( ASTEval node, P data )
115         throws OgnlException;
116 
117     R visit( ASTConst node, P data )
118         throws OgnlException;
119 
120     R visit( ASTThisVarRef node, P data )
121         throws OgnlException;
122 
123     R visit( ASTRootVarRef node, P data )
124         throws OgnlException;
125 
126     R visit( ASTVarRef node, P data )
127         throws OgnlException;
128 
129     R visit( ASTList node, P data )
130         throws OgnlException;
131 
132     R visit( ASTMap node, P data )
133         throws OgnlException;
134 
135     R visit( ASTKeyValue node, P data )
136         throws OgnlException;
137 
138     R visit( ASTStaticField node, P data )
139         throws OgnlException;
140 
141     R visit( ASTCtor node, P data )
142         throws OgnlException;
143 
144     R visit( ASTProperty node, P data )
145         throws OgnlException;
146 
147     R visit( ASTStaticMethod node, P data )
148         throws OgnlException;
149 
150     R visit( ASTMethod node, P data )
151         throws OgnlException;
152 
153     R visit( ASTProject node, P data )
154         throws OgnlException;
155 
156     R visit( ASTSelect node, P data )
157         throws OgnlException;
158 
159     R visit( ASTSelectFirst node, P data )
160         throws OgnlException;
161 
162     R visit( ASTSelectLast node, P data )
163         throws OgnlException;
164 }