KickJava   Java API By Example, From Geeks To Geeks.

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


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  * A equality test.
16  */

17 public class EqualNode extends BinaryNode {
18
19     public EqualNode(Node left, Node right) {
20         super(left, right);
21     }
22
23     public Object JavaDoc accept(NodeVisitor visitor, Object JavaDoc[] results) {
24       return visitor.visitEqualNode(this, results);
25     }
26
27     public Field visit(MemVisitor visitor, Object JavaDoc obj) {
28         return visitor.visitEqualNode(this, obj);
29     }
30
31     public Object JavaDoc arrive(NodeVisitor v, Object JavaDoc msg) {
32         return v.arriveEqualNode(this, msg);
33     }
34
35 }
36
37
Popular Tags