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