~ubuntu-branches/ubuntu/karmic/qdox/karmic

« back to all changes in this revision

Viewing changes to src/java/com/thoughtworks/qdox/model/annotation/AnnotationTypeRef.java

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Claude
  • Date: 2009-09-02 22:22:10 UTC
  • mfrom: (4.2.1 experimental) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090902222210-814b8tibw8z1eo3h
Tags: 1.9.2-1
* New upstream version
* Bump up Standards-Version to 3.8.3
* Add Build-Depends on openjdk-6-doc (Closes: #543112)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package com.thoughtworks.qdox.model.annotation;
 
2
 
 
3
import com.thoughtworks.qdox.model.Type;
 
4
 
 
5
public class AnnotationTypeRef implements AnnotationValue {
 
6
 
 
7
    private Type type;
 
8
 
 
9
    public AnnotationTypeRef( Type type ) {
 
10
        this.type = type;
 
11
    }
 
12
 
 
13
    public Type getType() {
 
14
        return type;
 
15
    }
 
16
 
 
17
    public String toString() {
 
18
        return type.getValue() + ".class";
 
19
    }
 
20
 
 
21
    public Object accept( AnnotationVisitor visitor ) {
 
22
        return visitor.visitAnnotationTypeRef( this );
 
23
    }
 
24
 
 
25
    public Object getParameterValue() {
 
26
        return type.getValue() + ".class";
 
27
    }
 
28
}