Package com.thoughtworks.qdox.model
Class Annotation
java.lang.Object
com.thoughtworks.qdox.model.Annotation
- All Implemented Interfaces:
AnnotationValue,Serializable
- Author:
- Eric Redmond
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotation(Type type, int line) Annotation(Type type, AbstractBaseJavaEntity context, Map namedParameters, int lineNumber) -
Method Summary
Modifier and TypeMethodDescriptionaccept(AnnotationVisitor visitor) Accept a visitor for this value.final AbstractBaseJavaEntityintgetNamedParameter(String key) Get a parameter value forgetNamedParameter(String).getProperty(String name) getType()voidsetContext(AbstractBaseJavaEntity context) voidsetProperty(String name, AnnotationValue value) toString()
-
Constructor Details
-
Annotation
-
Annotation
-
-
Method Details
-
setProperty
-
getType
- Returns:
- the annotation type
-
getNamedParameter
- Parameters:
key- name of a named-parameter- Returns:
- the corresponding value, or null if no such named-parameter was present
-
getNamedParameterMap
- Returns:
- a Map containing all the named-parameters
-
getContext
-
getLineNumber
public int getLineNumber() -
accept
Description copied from interface:AnnotationValueAccept a visitor for this value.- Specified by:
acceptin interfaceAnnotationValue- Parameters:
visitor- Visitor- Returns:
- Visitor result
-
getParameterValue
Description copied from interface:AnnotationValueGet a parameter value forgetNamedParameter(String).- Specified by:
getParameterValuein interfaceAnnotationValue- Returns:
- Parameter value
-
getPropertyMap
-
getProperty
-
setContext
-
toString
-