package IC.Type; import IC.Type.*; /** *
Title:
*Description:
*Copyright: Copyright (c) 2003
*Company:
* @author not attributable * @version 1.0 */ public class ArrayType extends Type { public Type elemType; // Construct the ArrayType public ArrayType (Type telemType) { elemType = telemType;} public boolean checkEqType (Type t) { if (t instanceof ArrayType) return (elemType.checkEqType(((ArrayType)t).elemType)); // return ( this==t.getType() ); return false; } public String toString() { return elemType + "[]"; } }