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 JavadocArraySingleTypeReference extends ArrayTypeReference {
19:
20: public JavadocArraySingleTypeReference(char[] name, int dim,
21: long pos) {
22: super (name, dim, pos);
23: this .bits |= InsideJavadoc;
24: }
25:
26: protected void reportInvalidType(Scope scope) {
27: scope.problemReporter().javadocInvalidType(this ,
28: this .resolvedType, scope.getDeclarationModifiers());
29: }
30:
31: protected void reportDeprecatedType(TypeBinding type, Scope scope) {
32: scope.problemReporter().javadocDeprecatedType(type, this ,
33: 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: */
40: public void traverse(ASTVisitor visitor, BlockScope scope) {
41: visitor.visit(this , scope);
42: visitor.endVisit(this , scope);
43: }
44:
45: public void traverse(ASTVisitor visitor, ClassScope scope) {
46: visitor.visit(this, scope);
47: visitor.endVisit(this, scope);
48: }
49: }
|