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.jdo.query;
12:
13: import com.versant.core.common.Debug;
14:
15: /**
16: * Dont't know what this is for.
17: */
18: public class ArrayNode extends Node {
19:
20: public Node args;
21: public String name;
22:
23: public ArrayNode() {
24: }
25:
26: public void dump(String indent) {
27: super .dump(indent);
28: if (name != null) {
29: Debug.OUT.println(indent + "name = " + name);
30: } else {
31: Debug.OUT.println(indent + "no_name");
32: }
33: if (args != null) {
34: args.dump(indent + " ");
35: }
36: }
37:
38: public Field visit(MemVisitor visitor, Object obj) {
39: return visitor.visitArrayNode(this , obj);
40: }
41:
42: public Object arrive(NodeVisitor v, Object msg) {
43: return v.arriveArrayNode(this, msg);
44: }
45: }
|