1 /******************************************************************************* 2 * Copyright (c) 2000, 2009 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.jdt.internal.compiler.ast; 12 13 import org.eclipse.jdt.internal.compiler.ASTVisitor; 14 import org.eclipse.jdt.internal.compiler.lookup.BlockScope; 15 import org.eclipse.jdt.internal.compiler.lookup.ClassScope; 16 import org.eclipse.jdt.internal.compiler.lookup.Scope; 17 import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; 18 19 20 21 public class JavadocArrayQualifiedTypeReference extends ArrayQualifiedTypeReference { 22 23 public int tagSourceStart, tagSourceEnd; 24 JavadocArrayQualifiedTypeReference(JavadocQualifiedTypeReference typeRef, int dim)25 public JavadocArrayQualifiedTypeReference(JavadocQualifiedTypeReference typeRef, int dim) { 26 super(typeRef.tokens, dim, typeRef.sourcePositions); 27 } 28 reportInvalidType(Scope scope)29 protected void reportInvalidType(Scope scope) { 30 scope.problemReporter().javadocInvalidType(this, this.resolvedType, scope.getDeclarationModifiers()); 31 } reportDeprecatedType(TypeBinding type, Scope scope)32 protected void reportDeprecatedType(TypeBinding type, Scope scope) { 33 scope.problemReporter().javadocDeprecatedType(type, this, scope.getDeclarationModifiers()); 34 } 35 36 /* (non-Javadoc) 37 * Redefine to capture javadoc specific signatures 38 * @see org.eclipse.jdt.internal.compiler.ast.ASTNode#traverse(org.eclipse.jdt.internal.compiler.ASTVisitor, org.eclipse.jdt.internal.compiler.lookup.BlockScope) 39 */ traverse(ASTVisitor visitor, BlockScope scope)40 public void traverse(ASTVisitor visitor, BlockScope scope) { 41 visitor.visit(this, scope); 42 visitor.endVisit(this, scope); 43 } 44 traverse(ASTVisitor visitor, ClassScope scope)45 public void traverse(ASTVisitor visitor, ClassScope scope) { 46 visitor.visit(this, scope); 47 visitor.endVisit(this, scope); 48 } 49 } 50