com.thoughtworks.qdox.model.annotation
Class AnnotationConstant

java.lang.Object
  extended by com.thoughtworks.qdox.model.annotation.AnnotationConstant
All Implemented Interfaces:
AnnotationValue, java.io.Serializable

public class AnnotationConstant
extends java.lang.Object
implements AnnotationValue, java.io.Serializable

See Also:
Serialized Form

Field Summary
private  java.lang.String image
           
private  java.lang.Object value
           
 
Constructor Summary
AnnotationConstant(java.lang.Object value, java.lang.String image)
           
 
Method Summary
 java.lang.Object accept(AnnotationVisitor visitor)
          Accept a visitor for this value.
 java.lang.String getImage()
           
 java.lang.Object getParameterValue()
          Get a parameter value for Annotation.getNamedParameter(String).
 java.lang.Object getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private final java.lang.Object value

image

private final java.lang.String image
Constructor Detail

AnnotationConstant

public AnnotationConstant(java.lang.Object value,
                          java.lang.String image)
Method Detail

getValue

public java.lang.Object getValue()

getImage

public java.lang.String getImage()

toString

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

accept

public java.lang.Object accept(AnnotationVisitor visitor)
Description copied from interface: AnnotationValue
Accept a visitor for this value.

Specified by:
accept in interface AnnotationValue
Parameters:
visitor - Visitor
Returns:
Visitor result

getParameterValue

public java.lang.Object getParameterValue()
Description copied from interface: AnnotationValue
Get a parameter value for Annotation.getNamedParameter(String).

Specified by:
getParameterValue in interface AnnotationValue
Returns:
Parameter value