added -J option to preserve unmodified files in preexisting jarfile
[org.ibex.tool.git] / src / org / eclipse / jdt / internal / compiler / ast / JavadocArrayQualifiedTypeReference.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
20 public class JavadocArrayQualifiedTypeReference extends ArrayQualifiedTypeReference {
21
22         public int tagSourceStart, tagSourceEnd;
23
24         public JavadocArrayQualifiedTypeReference(JavadocQualifiedTypeReference typeRef, int dim) {
25                 super(typeRef.tokens, dim, typeRef.sourcePositions);
26         }
27
28         protected void reportInvalidType(Scope scope) {
29                 scope.problemReporter().javadocInvalidType(this, this.resolvedType, scope.getDeclarationModifiers());
30         }
31         protected void reportDeprecatedType(Scope scope) {
32                 scope.problemReporter().javadocDeprecatedType(this.resolvedType, this, scope.getDeclarationModifiers());
33         }
34
35         /* (non-Javadoc)
36          * Redefine to capture javadoc specific signatures
37          * @see org.eclipse.jdt.internal.compiler.ast.ASTNode#traverse(org.eclipse.jdt.internal.compiler.ASTVisitor, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
38          */
39         public void traverse(ASTVisitor visitor, BlockScope scope) {
40                 visitor.visit(this, scope);
41                 visitor.endVisit(this, scope);
42         }
43         
44         public void traverse(ASTVisitor visitor, ClassScope scope) {
45                 visitor.visit(this, scope);
46                 visitor.endVisit(this, scope);
47         }
48 }