1) Moved net.sourceforge.phpeclipse.ui\src\net\sourceforge\phpdt back to net.sourcefo...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / 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 net.sourceforge.phpdt.internal.compiler.ast;
12
13 import net.sourceforge.phpdt.internal.compiler.ASTVisitor;
14 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
15 import net.sourceforge.phpdt.internal.compiler.lookup.Scope;
16
17 public class JavadocArraySingleTypeReference extends ArrayTypeReference {
18
19         public JavadocArraySingleTypeReference(char[] name, int dim, long pos) {
20                 super(name, dim, pos);
21                 this.bits |= InsideJavadoc;
22         }
23
24         protected void reportInvalidType(Scope scope) {
25                 scope.problemReporter().javadocInvalidType(this, this.resolvedType,
26                                 scope.getDeclarationModifiers());
27         }
28
29         protected void reportDeprecatedType(Scope scope) {
30                 scope.problemReporter().javadocDeprecatedType(this.resolvedType, this,
31                                 scope.getDeclarationModifiers());
32         }
33
34         /*
35          * (non-Javadoc) Redefine to capture javadoc specific signatures
36          * 
37          * @see net.sourceforge.phpdt.internal.compiler.ast.ASTNode#traverse(net.sourceforge.phpdt.internal.compiler.ASTVisitor,
38          *      net.sourceforge.phpdt.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 }