KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > ejb > query > BinaryNode


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.ejb.query;
13
14 /**
15  * Node with two arguments.
16  */

17 public abstract class BinaryNode extends Node {
18
19     protected Node left;
20     protected Node right;
21
22     public BinaryNode(Node left, Node right) {
23         this.left = left;
24         this.right = right;
25     }
26
27     public Node getLeft() {
28         return left;
29     }
30
31     public Node getRight() {
32         return right;
33     }
34
35     public void resolve(ResolveContext rc) {
36         left.resolve(rc);
37         right.resolve(rc);
38     }
39
40 }
41
42
Popular Tags