com.thoughtworks.qdox.model

Class Annotation

public class Annotation extends Object implements Serializable

Author: Eric Redmond

Constructor Summary
Annotation(Type type, AbstractJavaEntity context, Map namedParameters, int lineNumber)
Method Summary
AbstractJavaEntitygetContext()
intgetLineNumber()
ObjectgetNamedParameter(String key)
MapgetNamedParameterMap()
TypegetType()
StringtoString()

Constructor Detail

Annotation

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

Method Detail

getContext

public final AbstractJavaEntity 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

getType

public Type getType()

Returns: the annotation type

toString

public String toString()
Copyright © 2002-2011. All Rights Reserved.