KickJava   Java API By Example, From Geeks To Geeks.

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


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  * An 'or' node.
16  */

17 public class OrNode extends AndNode {
18
19     public OrNode() {
20     }
21
22
23
24     public Object JavaDoc accept(NodeVisitor visitor, Object JavaDoc[] results) {
25       return visitor.visitOrNode(this, results);
26     }
27
28     public Field visit(MemVisitor visitor, Object JavaDoc obj) {
29         return visitor.visitOrNode(this, obj);
30     }
31
32     /**
33      * Create a new instance of us.
34      */

35     protected AndNode createInstance() {
36         return new OrNode();
37     }
38
39     public Object JavaDoc arrive(NodeVisitor v, Object JavaDoc msg) {
40         return v.arriveOrNode(this, msg);
41     }
42
43 }
44
45
Popular Tags