KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > ast > JavadocArraySingleTypeReference


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 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 public class JavadocArraySingleTypeReference extends ArrayTypeReference {
21
22     public JavadocArraySingleTypeReference(char[] name, int dim, long pos) {
23         super(name, dim, pos);
24         this.bits |= InsideJavadoc;
25     }
26
27     protected void reportInvalidType(Scope scope) {
28         scope.problemReporter().javadocInvalidType(this, this.resolvedType, scope.getDeclarationModifiers());
29     }
30     protected void reportDeprecatedType(TypeBinding type, Scope scope) {
31         scope.problemReporter().javadocDeprecatedType(type, this, scope.getDeclarationModifiers());
32     }
33
34     /* (non-Javadoc)
35      * Redefine to capture javadoc specific signatures
36      * @see org.eclipse.jdt.internal.compiler.ast.ASTNode#traverse(org.eclipse.jdt.internal.compiler.ASTVisitor, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
37      */

38     public void traverse(ASTVisitor visitor, BlockScope scope) {
39         visitor.visit(this, scope);
40         visitor.endVisit(this, scope);
41     }
42
43     public void traverse(ASTVisitor visitor, ClassScope scope) {
44         visitor.visit(this, scope);
45         visitor.endVisit(this, scope);
46     }
47 }
48
Popular Tags