X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Feclipse%2Fjdt%2Finternal%2Fcompiler%2Fast%2FArrayQualifiedTypeReference.java;fp=src%2Forg%2Feclipse%2Fjdt%2Finternal%2Fcompiler%2Fast%2FArrayQualifiedTypeReference.java;h=0000000000000000000000000000000000000000;hb=6f0cd02d46e011bd5599e1b7fefc6159cb811135;hp=701f3a6b4afb6bc233a41f4ed6ede6521896974b;hpb=622d0e5a4b1b35b6918a516a79a0cc22272a919e;p=org.ibex.tool.git diff --git a/src/org/eclipse/jdt/internal/compiler/ast/ArrayQualifiedTypeReference.java b/src/org/eclipse/jdt/internal/compiler/ast/ArrayQualifiedTypeReference.java deleted file mode 100644 index 701f3a6..0000000 --- a/src/org/eclipse/jdt/internal/compiler/ast/ArrayQualifiedTypeReference.java +++ /dev/null @@ -1,66 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jdt.internal.compiler.ast; - -import org.eclipse.jdt.internal.compiler.ASTVisitor; -import org.eclipse.jdt.internal.compiler.lookup.*; - -public class ArrayQualifiedTypeReference extends QualifiedTypeReference { - int dimensions; - - public ArrayQualifiedTypeReference(char[][] sources , int dim, long[] poss) { - - super( sources , poss); - dimensions = dim ; - } - - public ArrayQualifiedTypeReference(char[][] sources , TypeBinding tb, int dim, long[] poss) { - - super( sources , tb, poss); - dimensions = dim ; - } - - public int dimensions() { - - return dimensions; - } - - public TypeBinding getTypeBinding(Scope scope) { - - if (this.resolvedType != null) - return this.resolvedType; - if (dimensions > 255) { - scope.problemReporter().tooManyDimensions(this); - } - return scope.createArray(scope.getType(tokens), dimensions); - } - - public StringBuffer printExpression(int indent, StringBuffer output){ - - super.printExpression(indent, output); - for (int i = 0 ; i < dimensions ; i++) { - output.append("[]"); //$NON-NLS-1$ - } - return output; - } - - public void traverse(ASTVisitor visitor, BlockScope scope) { - - visitor.visit(this, scope); - visitor.endVisit(this, scope); - } - - public void traverse(ASTVisitor visitor, ClassScope scope) { - - visitor.visit(this, scope); - visitor.endVisit(this, scope); - } -}