KickJava   Java API By Example, From Geeks To Geeks.

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


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 import com.versant.core.common.Debug;
15
16 /**
17  * Dont't know what this is for.
18  */

19 public class ArrayNode extends Node {
20
21     public Node args;
22     public String JavaDoc name;
23
24     public ArrayNode() {
25     }
26
27     public void dump(String JavaDoc indent) {
28         super.dump(indent);
29         if(name != null) { Debug.OUT.println(indent+ "name = "+name); }
30         else{Debug.OUT.println(indent+ "no_name"); }
31         if(args != null ) { args.dump(indent+" "); }
32     }
33
34     public Field visit(MemVisitor visitor, Object JavaDoc obj) {
35         return visitor.visitArrayNode(this, obj);
36     }
37
38     public Object JavaDoc arrive(NodeVisitor v, Object JavaDoc msg) {
39         return v.arriveArrayNode(this, msg);
40     }
41 }
42
Popular Tags