com.thoughtworks.qdox.model

Class Annotation

public class Annotation extends Object implements AnnotationValue, Serializable

Author: Eric Redmond

Constructor Summary
Annotation(Type type, AbstractBaseJavaEntity context, Map namedParameters, int lineNumber)
Annotation(Type type, int line)
Method Summary
Objectaccept(AnnotationVisitor visitor)
AbstractBaseJavaEntitygetContext()
intgetLineNumber()
ObjectgetNamedParameter(String key)
MapgetNamedParameterMap()
ObjectgetParameterValue()
AnnotationValuegetProperty(String name)
MapgetPropertyMap()
TypegetType()
voidsetContext(AbstractBaseJavaEntity context)
voidsetProperty(String name, AnnotationValue value)
StringtoString()

Constructor Detail

Annotation

public Annotation(Type type, AbstractBaseJavaEntity context, Map namedParameters, int lineNumber)

Annotation

public Annotation(Type type, int line)

Method Detail

accept

public Object accept(AnnotationVisitor visitor)

getContext

public final AbstractBaseJavaEntity getContext()

getLineNumber

public int getLineNumber()

getNamedParameter

public Object getNamedParameter(String key)

Parameters: key name of a named-parameter

Returns: the corresponding value, or null if no such named-parameter was present

getNamedParameterMap

public Map getNamedParameterMap()

Returns: a Map containing all the named-parameters

getParameterValue

public Object getParameterValue()

getProperty

public AnnotationValue getProperty(String name)

getPropertyMap

public Map getPropertyMap()

getType

public Type getType()

Returns: the annotation type

setContext

public void setContext(AbstractBaseJavaEntity context)

setProperty

public void setProperty(String name, AnnotationValue value)

toString

public String toString()