KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdo > query > NodeVisitor


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.jdo.query;
13
14 /**
15  * This is the common interface for a visitor.
16  * Subclasses can apply different behavior for different nodes.
17  */

18 public interface NodeVisitor {
19
20     Object JavaDoc visitLiteralNode(LiteralNode node, Object JavaDoc[] results);
21
22     Object JavaDoc visitAddNode(AddNode node, Object JavaDoc[] results);
23
24     Object JavaDoc visitMultiplyNode(MultiplyNode node, Object JavaDoc[] results);
25
26     Object JavaDoc visitUnaryNode(UnaryNode node, Object JavaDoc[] results);
27
28     Object JavaDoc visitUnaryOpNode(UnaryOpNode node, Object JavaDoc[] results);
29
30     Object JavaDoc visitNotEqualNode(NotEqualNode node, Object JavaDoc[] results);
31
32     Object JavaDoc visitEqualNode(EqualNode node, Object JavaDoc[] results);
33
34     Object JavaDoc visitLikeNode(LikeNode node, Object JavaDoc[] results);
35
36     Object JavaDoc visitCompareOpNode(CompareOpNode node, Object JavaDoc[] results);
37
38     Object JavaDoc visitParamNode(ParamNode node, Object JavaDoc[] results);
39
40     Object JavaDoc visitFieldNode(FieldNode node, Object JavaDoc[] results);
41
42     Object JavaDoc visitFieldNavNode(FieldNavNode node, Object JavaDoc[] results);
43
44     Object JavaDoc visitVarNode(VarNode node, Object JavaDoc[] results);
45
46     Object JavaDoc visitMethodNode(MethodNode node, Object JavaDoc[] results);
47
48     Object JavaDoc visitAndNode(AndNode node, Object JavaDoc[] results);
49
50     Object JavaDoc visitOrNode(OrNode node, Object JavaDoc[] results);
51
52     Object JavaDoc visitOrderNode(OrderNode node, Object JavaDoc[] results);
53
54     public Object JavaDoc visitAggregateCountStarNode(AggregateCountStarNode node, Object JavaDoc[] results);
55
56     public Object JavaDoc visitAggregateNode(AggregateNode node, Object JavaDoc[] results);
57
58     public Object JavaDoc visitAsValueNode(AsValueNode node, Object JavaDoc[] results);
59
60     public Object JavaDoc visitGroupingNode(GroupingNode node, Object JavaDoc[] results);
61
62     public Object JavaDoc visitResultNode(ResultNode node, Object JavaDoc[] results);
63
64     public Object JavaDoc visitVarBindingNode(VarBindingNode node, Object JavaDoc[] results);
65
66     // arrive methods
67

68     public Object JavaDoc arriveLiteralNode(LiteralNode node, Object JavaDoc msg);
69
70     public Object JavaDoc arriveFieldNavNode(FieldNavNode node, Object JavaDoc msg);
71
72     public Object JavaDoc arriveMethodNode(MethodNode node, Object JavaDoc msg);
73
74     public Object JavaDoc arrivePrimaryExprNode(PrimaryExprNode node, Object JavaDoc msg);
75
76     public Object JavaDoc arriveFieldNode(FieldNode node, Object JavaDoc msg);
77
78     public Object JavaDoc arriveEqualNode(EqualNode node, Object JavaDoc msg);
79
80     public Object JavaDoc arriveLikeNode(LikeNode node, Object JavaDoc msg);
81
82     public Object JavaDoc arriveNotEqualNode(NotEqualNode node, Object JavaDoc msg);
83
84     public Object JavaDoc arriveAndNode(AndNode node, Object JavaDoc msg);
85
86     public Object JavaDoc arriveOrNode(OrNode node, Object JavaDoc msg);
87
88     public Object JavaDoc arriveMultiplyNode(MultiplyNode node, Object JavaDoc msg);
89
90     public Object JavaDoc arriveAddNode(AddNode node, Object JavaDoc msg);
91
92     public Object JavaDoc arriveUnaryOpNode(UnaryOpNode node, Object JavaDoc msg);
93
94     public Object JavaDoc arriveCompareOpNode(CompareOpNode node, Object JavaDoc msg);
95
96     public Object JavaDoc arriveUnaryNode(UnaryNode node, Object JavaDoc msg);
97
98     public Object JavaDoc arriveBinaryNode(BinaryNode node, Object JavaDoc msg);
99
100     public Object JavaDoc arriveCastNode(CastNode node, Object JavaDoc msg);
101
102     public Object JavaDoc arriveParamNode(ParamNode node, Object JavaDoc msg);
103
104     public Object JavaDoc arriveParamNodeProxy(ParamNodeProxy node, Object JavaDoc msg);
105
106     public Object JavaDoc arriveArgNode(ArgNode node, Object JavaDoc msg);
107
108     public Object JavaDoc arriveArrayNode(ArrayNode node, Object JavaDoc msg);
109
110     public Object JavaDoc arriveImportNode(ImportNode node, Object JavaDoc msg);
111
112     public Object JavaDoc arriveLeafNode(LeafNode node, Object JavaDoc msg);
113
114     public Object JavaDoc arriveOrderNode(OrderNode node, Object JavaDoc msg);
115
116     public Object JavaDoc arriveVarNode(VarNode node, Object JavaDoc msg);
117
118     public Object JavaDoc arriveVarNodeProxy(VarNodeProxy node, Object JavaDoc msg);
119
120     public Object JavaDoc arriveReservedFieldNode(ReservedFieldNode node, Object JavaDoc msg);
121
122     public Object JavaDoc arriveAggregateCountStarNode(AggregateCountStarNode node, Object JavaDoc msg);
123
124     public Object JavaDoc arriveAggregateNode(AggregateNode node, Object JavaDoc msg);
125
126     public Object JavaDoc arriveAsValueNode(AsValueNode node, Object JavaDoc msg);
127
128     public Object JavaDoc arriveGroupingNode(GroupingNode node, Object JavaDoc msg);
129
130     public Object JavaDoc arriveResultNode(ResultNode node, Object JavaDoc msg);
131
132     public Object JavaDoc arriveVarBindingNode(VarBindingNode node, Object JavaDoc msg);
133
134 }
135
Popular Tags