00001 /*** 00002 * Jonathan: an Open Distributed Processing Environment 00003 * Copyright (C) 1999 France Telecom R&D 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 * 00019 * Release: 2.0 00020 * 00021 * Contact: jonathan@objectweb.org 00022 * 00023 * Author: François Horn 00024 * 00025 */ 00026 00027 package org.objectweb.david.tools.idlparser; 00028 00029 public class ArrayTypeNode extends AggregateTypeNode { 00030 00038 public ArrayTypeNode(TypeNode n,int d,boolean isErr,Token tok,int iL) { 00039 super(n,"_"+n.getLocalName()+"ARRAY",isErr,tok,iL); 00040 iKind=ARRAYTYPENODE; 00041 setDimension(d); 00042 } 00043 00048 public boolean equals(Object o) { 00049 if (o != null && o instanceof ArrayTypeNode) { 00050 if (!elemType.equals(((ArrayTypeNode) o).elemType)) return false; 00051 if (getDimension()!=((ArrayTypeNode) o).getDimension()) return false; 00052 return true; 00053 } else return false; 00054 } 00055 }
1.2.6 written by Dimitri van Heesch,
© 1997-2001