added -J option to preserve unmodified files in preexisting jarfile
[org.ibex.tool.git] / src / org / eclipse / jdt / internal / compiler / ast / JavadocArraySingleTypeReference.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-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
18
19 public class JavadocArraySingleTypeReference extends ArrayTypeReference {
20
21         public JavadocArraySingleTypeReference(char[] name, int dim, long pos) {
22                 super(name, dim, pos);
23                 this.bits |= InsideJavadoc;
24         }
25
26         protected void reportInvalidType(Scope scope) {
27                 scope.problemReporter().javadocInvalidType(this, this.resolvedType, scope.getDeclarationModifiers());
28         }
29         protected void reportDeprecatedType(Scope scope) {
30                 scope.problemReporter().javadocDeprecatedType(this.resolvedType, this, scope.getDeclarationModifiers());
31         }
32
33         /* (non-Javadoc)
34          * Redefine to capture javadoc specific signatures
35          * @see org.eclipse.jdt.internal.compiler.ast.ASTNode#traverse(org.eclipse.jdt.internal.compiler.ASTVisitor, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
36          */
37         public void traverse(ASTVisitor visitor, BlockScope scope) {
38                 visitor.visit(this, scope);
39                 visitor.endVisit(this, scope);
40         }
41
42         public void traverse(ASTVisitor visitor, ClassScope scope) {
43                 visitor.visit(this, scope);
44                 visitor.endVisit(this, scope);
45         }
46 }