org.codehaus.backport175.compiler.javadoc
Class RawAnnotation

java.lang.Object
  extended by org.codehaus.backport175.compiler.javadoc.RawAnnotation

public class RawAnnotation
extends java.lang.Object

Raw info about an reader. Holds the name (the FQN of the reader interface) of the annotations and its unparsed "content".

Note: Two RawAnnotation instances are considered equals when the annotationClass is the same, no matter the value.

Author:
Alexander Vasseur, Jonas Bonér

Constructor Summary
RawAnnotation(java.lang.Class annotationClass, java.lang.String value, int line, java.lang.String enclosingClassName, java.lang.String enclosingClassFile)
          Creates a new raw annotation.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Class getAnnotationClass()
          Returns the annotation class
 java.lang.String getEnclosingClassFile()
           
 java.lang.String getEnclosingClassName()
           
 int getLineNumber()
           
 java.lang.String getName()
          Returns the annotation name (which is the FQN of the annotation interface).
 java.lang.String getValue()
          Returns the annotation "content".
 int hashCode()
           
 boolean isAnnotationDefaultValue()
          Returns true if the annotation represents an annotation default value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RawAnnotation

public RawAnnotation(java.lang.Class annotationClass,
                     java.lang.String value,
                     int line,
                     java.lang.String enclosingClassName,
                     java.lang.String enclosingClassFile)
Creates a new raw annotation.

Parameters:
annotationClass - the annotation interface
value - the unparsed annotation "content"
line - number
enclosingClassName -
enclosingClassFile -
Method Detail

getName

public java.lang.String getName()
Returns the annotation name (which is the FQN of the annotation interface).

Returns:

getValue

public java.lang.String getValue()
Returns the annotation "content".

Returns:

getAnnotationClass

public java.lang.Class getAnnotationClass()
Returns the annotation class

Returns:

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getEnclosingClassName

public java.lang.String getEnclosingClassName()

getEnclosingClassFile

public java.lang.String getEnclosingClassFile()

getLineNumber

public int getLineNumber()

isAnnotationDefaultValue

public boolean isAnnotationDefaultValue()
Returns true if the annotation represents an annotation default value

Returns: