Package com.thoughtworks.qdox.model.impl
Class DefaultJavaAnnotation
java.lang.Object
com.thoughtworks.qdox.model.impl.AbstractJavaModel
com.thoughtworks.qdox.model.impl.DefaultJavaAnnotation
- All Implemented Interfaces:
AnnotationValue
,Expression
,JavaAnnotation
,JavaModel
,Serializable
public class DefaultJavaAnnotation
extends AbstractJavaModel
implements AnnotationValue, Serializable, JavaAnnotation
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionAnnotation properties as Parametersprivate final Map<String,
AnnotationValue> Annotation properties as AnnotationValuesprivate final JavaClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept
(ExpressionVisitor visitor) Accept a visitor for this value.getNamedParameter
(String key) Get a parameter value forJavaAnnotation.getNamedParameter(String)
.getProperty
(String name) getType()
final void
setProperty
(String name, AnnotationValue value) toString()
Methods inherited from class com.thoughtworks.qdox.model.impl.AbstractJavaModel
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.thoughtworks.qdox.model.JavaModel
getLineNumber
-
Field Details
-
type
-
properties
Annotation properties as AnnotationValuesThis map contains the parsed AnnotationValue for each property and allows access to the full parse tree, including typerefs and expressions.
-
namedParameters
Annotation properties as Parameters
-
-
Constructor Details
-
DefaultJavaAnnotation
-
DefaultJavaAnnotation
-
-
Method Details
-
setProperty
-
getType
- Specified by:
getType
in interfaceJavaAnnotation
- Returns:
- the annotation type
-
getNamedParameter
- Specified by:
getNamedParameter
in interfaceJavaAnnotation
-
getNamedParameterMap
- Specified by:
getNamedParameterMap
in interfaceJavaAnnotation
-
getCodeBlock
- Specified by:
getCodeBlock
in interfaceJavaModel
- Returns:
- the codeblock
-
accept
Accept a visitor for this value.- Specified by:
accept
in interfaceAnnotationValue
- Parameters:
visitor
- Visitor- Returns:
- Visitor result
-
getParameterValue
Get a parameter value forJavaAnnotation.getNamedParameter(String)
.- Specified by:
getParameterValue
in interfaceExpression
- Returns:
- Parameter value
-
getPropertyMap
- Specified by:
getPropertyMap
in interfaceJavaAnnotation
-
getProperty
- Specified by:
getProperty
in interfaceJavaAnnotation
-
toString
-