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 AbstractBaseJavaEntity
int
getNamedParameter
(String key) Get a parameter value forgetNamedParameter(String)
.getProperty
(String name) getType()
void
setContext
(AbstractBaseJavaEntity context) void
setProperty
(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:AnnotationValue
Accept a visitor for this value.- Specified by:
accept
in interfaceAnnotationValue
- Parameters:
visitor
- Visitor- Returns:
- Visitor result
-
getParameterValue
Description copied from interface:AnnotationValue
Get a parameter value forgetNamedParameter(String)
.- Specified by:
getParameterValue
in interfaceAnnotationValue
- Returns:
- Parameter value
-
getPropertyMap
-
getProperty
-
setContext
-
toString
-