KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Visitor for nodes in the parse tree to generate bytecode for in memory
16  * queries.
17  * @see Node#visit
18  */

19 public interface MemVisitor {
20
21     public Field visitNode(Node node, Object JavaDoc obj);
22
23     public Field visitLiteralNode(LiteralNode node, Object JavaDoc obj);
24
25     public Field visitFieldNavNode(FieldNavNode node, Object JavaDoc obj);
26
27     public Field visitMethodNode(MethodNode node, Object JavaDoc obj);
28
29     public Field visitPrimaryExprNode(PrimaryExprNode node, Object JavaDoc obj);
30
31     public Field visitFieldNode(FieldNode node, Object JavaDoc obj);
32
33     public Field visitEqualNode(EqualNode node, Object JavaDoc obj);
34
35     public Field visitNotEqualNode(NotEqualNode node, Object JavaDoc obj);
36
37     public Field visitLikeNode(LikeNode node, Object JavaDoc obj);
38
39     public Field visitAndNode(AndNode node, Object JavaDoc obj);
40
41     public Field visitOrNode(OrNode node, Object JavaDoc obj);
42
43     public Field visitMultiplyNode(MultiplyNode node, Object JavaDoc obj);
44
45     public Field visitAddNode(AddNode node, Object JavaDoc obj);
46
47     public Field visitUnaryOpNode(UnaryOpNode node, Object JavaDoc obj);
48
49     public Field visitCompareOpNode(CompareOpNode node, Object JavaDoc obj);
50
51     public Field visitUnaryNode(UnaryNode node, Object JavaDoc obj);
52
53     public Field visitBinaryNode(BinaryNode node, Object JavaDoc obj);
54
55     public Field visitMultiNode(Node node, Object JavaDoc obj);
56
57     public Field visitCastNode(CastNode node, Object JavaDoc obj);
58
59     public Field visitParamNode(ParamNode node, Object JavaDoc obj);
60
61     public Field visitParamNodeProxy(ParamNodeProxy node, Object JavaDoc obj);
62
63     public Field visitArgNode(ArgNode node, Object JavaDoc obj);
64
65     public Field visitArrayNode(ArrayNode node, Object JavaDoc obj);
66
67     public Field visitImportNode(ImportNode node, Object JavaDoc obj);
68
69     public Field visitLeafNode(LeafNode node, Object JavaDoc obj);
70
71     public Field visitOrderNode(OrderNode node, Object JavaDoc obj);
72
73     public Field visitVarNode(VarNode node, Object JavaDoc obj);
74
75     public Field visitVarNodeProxy(VarNodeProxy node, Object JavaDoc obj);
76
77     public Field visitReservedFieldNode(ReservedFieldNode node, Object JavaDoc obj);
78 }
79
Popular Tags