X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Feclipse%2Fjdt%2Finternal%2Fcompiler%2Fast%2FJavadocQualifiedTypeReference.java;fp=src%2Forg%2Feclipse%2Fjdt%2Finternal%2Fcompiler%2Fast%2FJavadocQualifiedTypeReference.java;h=0000000000000000000000000000000000000000;hb=6f0cd02d46e011bd5599e1b7fefc6159cb811135;hp=388f8ef9897bbff8f05422c8e19805adf6b20fc2;hpb=622d0e5a4b1b35b6918a516a79a0cc22272a919e;p=org.ibex.tool.git diff --git a/src/org/eclipse/jdt/internal/compiler/ast/JavadocQualifiedTypeReference.java b/src/org/eclipse/jdt/internal/compiler/ast/JavadocQualifiedTypeReference.java deleted file mode 100644 index 388f8ef..0000000 --- a/src/org/eclipse/jdt/internal/compiler/ast/JavadocQualifiedTypeReference.java +++ /dev/null @@ -1,93 +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.Binding; -import org.eclipse.jdt.internal.compiler.lookup.BlockScope; -import org.eclipse.jdt.internal.compiler.lookup.ClassScope; -import org.eclipse.jdt.internal.compiler.lookup.PackageBinding; -import org.eclipse.jdt.internal.compiler.lookup.Scope; -import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; - - - -public class JavadocQualifiedTypeReference extends QualifiedTypeReference { - - public int tagSourceStart, tagSourceEnd; - public PackageBinding packageBinding; - - public JavadocQualifiedTypeReference(char[][] sources, long[] pos, int tagStart, int tagEnd) { - super(sources, pos); - this.tagSourceStart = tagStart; - this.tagSourceEnd = tagEnd; - this.bits |= InsideJavadoc; - } - - protected void reportInvalidType(Scope scope) { - scope.problemReporter().javadocInvalidType(this, this.resolvedType, scope.getDeclarationModifiers()); - } - protected void reportDeprecatedType(Scope scope) { - scope.problemReporter().javadocDeprecatedType(this.resolvedType, this, scope.getDeclarationModifiers()); - } - - /* (non-Javadoc) - * Redefine to capture javadoc specific signatures - * @see org.eclipse.jdt.internal.compiler.ast.ASTNode#traverse(org.eclipse.jdt.internal.compiler.ASTVisitor, org.eclipse.jdt.internal.compiler.lookup.BlockScope) - */ - public void traverse(ASTVisitor visitor, BlockScope scope) { - visitor.visit(this, scope); - visitor.endVisit(this, scope); - } - - /* - * - */ - private TypeBinding internalResolveType(Scope scope) { - // handle the error here - this.constant = NotAConstant; - if (this.resolvedType != null) { // is a shared type reference which was already resolved - if (!this.resolvedType.isValidBinding()) - return null; // already reported error - } else { - this.resolvedType = getTypeBinding(scope); - if (!this.resolvedType.isValidBinding()) { - Binding binding = scope.getTypeOrPackage(this.tokens); - if (binding instanceof PackageBinding) { - this.packageBinding = (PackageBinding) binding; - } else { - reportInvalidType(scope); - } - return null; - } - if (isTypeUseDeprecated(this.resolvedType, scope)) { - reportDeprecatedType(scope); - } - } - return this.resolvedType; - } - - /* (non-Javadoc) - * @see org.eclipse.jdt.internal.compiler.ast.Expression#resolveType(org.eclipse.jdt.internal.compiler.lookup.BlockScope) - * We need to override to handle package references - */ - public TypeBinding resolveType(BlockScope blockScope) { - return internalResolveType(blockScope); - } - - /* (non-Javadoc) - * @see org.eclipse.jdt.internal.compiler.ast.Expression#resolveType(org.eclipse.jdt.internal.compiler.lookup.ClassScope) - * We need to override to handle package references - */ - public TypeBinding resolveType(ClassScope classScope) { - return internalResolveType(classScope); - } -}