01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.ejb.query;
12:
13: /**
14: * Node with two arguments.
15: */
16: public abstract class BinaryNode extends Node {
17:
18: protected Node left;
19: protected Node right;
20:
21: public BinaryNode(Node left, Node right) {
22: this .left = left;
23: this .right = right;
24: }
25:
26: public Node getLeft() {
27: return left;
28: }
29:
30: public Node getRight() {
31: return right;
32: }
33:
34: public void resolve(ResolveContext rc) {
35: left.resolve(rc);
36: right.resolve(rc);
37: }
38:
39: }
|