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
- Author:
- Eric Redmond
- See Also:
-
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
-
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
-