KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > jdo > jdoql > Visitor


1 package org.apache.ojb.jdo.jdoql;
2
3 /* Copyright 2003-2005 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * 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
18 import java.util.List JavaDoc;
19
20 /**
21  * Denotes types that visit the jdoql expression trees.
22  *
23  * @author <a HREF="mailto:tomdz@apache.org">Thomas Dudziak</a>
24  */

25 public interface Visitor
26 {
27     /**
28      * Processes the variable declarations.
29      *
30      * @param variables The variables
31      */

32     public void visitVariables(List JavaDoc variables);
33
34     /**
35      * Processes the parameter declarations.
36      *
37      * @param params The parameters
38      */

39     public void visitParameters(List JavaDoc params);
40
41     /**
42      * Processes the orderings.
43      *
44      * @param orderings The orderings
45      */

46     public void visitOrderings(List JavaDoc orderings);
47
48     /**
49      * Processes the filter expression.
50      *
51      * @param filterExpr The filter expression
52      */

53     public void visitFilter(Expression filterExpr);
54
55     /**
56      * Processes the given binary expression.
57      *
58      * @param binExpr The binary expression to process
59      */

60     void visit(BinaryExpression binExpr);
61
62     /**
63      * Processes the given field access expression.
64      *
65      * @param fieldAccess The field access to process
66      */

67     void visit(FieldAccess fieldAccess);
68
69     /**
70      * Processes the given import specification.
71      *
72      * @param nullLit The import specification to process
73      */

74     void visit(Import importSpec);
75
76     /**
77      * Processes the given literal.
78      *
79      * @param literal The literal to process
80      */

81     void visit(Literal literal);
82
83     /**
84      * Processes the given local variable declaration.
85      *
86      * @param localVar The local variable declaration to process
87      */

88     void visit(LocalVariable localVar);
89
90     /**
91      * Processes the given local variable access expression.
92      *
93      * @param localVarAccess The local variable access expression to process
94      */

95     void visit(LocalVariableAccess localVarAccess);
96
97     /**
98      * Processes the given method invocation expression.
99      *
100      * @param methodInvoc The method invocation expression to process
101      */

102     void visit(MethodInvocation methodInvoc);
103
104     /**
105      * Processes the given name expression.
106      *
107      * @param varAccess The name expression to process
108      */

109     void visit(NameExpression nameExpr);
110
111     /**
112      * Processes the given <code>null</code> literal.
113      *
114      * @param nullLit The <code>null</code> literal to process
115      */

116     void visit(NullLiteral nullLit);
117
118     /**
119      * Processes the given ordering.
120      *
121      * @param ordering The ordering to process
122      */

123     void visit(Ordering ordering);
124
125     /**
126      * Processes the given <code>this</code> expression.
127      *
128      * @param thisExpr The <code>this</code> expression to process
129      */

130     void visit(ThisExpression thisExpr);
131     
132     /**
133      * Processes the given type.
134      *
135      * @param type The type to process
136      */

137     void visit(Type type);
138
139     /**
140      * Processes the given type access expression.
141      *
142      * @param type The type access expression to process
143      */

144     void visit(TypeAccess typeAccess);
145
146     /**
147      * Processes the given unary expression.
148      *
149      * @param unaryExpr The unary expression to process
150      */

151     void visit(UnaryExpression unaryExpr);
152 }
153
Popular Tags