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 voidsetProperty(String name, AnnotationValue value) toString()Methods inherited from class AbstractJavaModel
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactoryMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface JavaModel
getLineNumber
-
Constructor Details
-
DefaultJavaAnnotation
-
DefaultJavaAnnotation
-
-
Method Details
-
setProperty
-
getType
- Specified by:
getTypein interfaceJavaAnnotation- Returns:
- the annotation type
-
getNamedParameter
- Specified by:
getNamedParameterin interfaceJavaAnnotation
-
getNamedParameterMap
- Specified by:
getNamedParameterMapin interfaceJavaAnnotation
-
getCodeBlock
- Specified by:
getCodeBlockin interfaceJavaModel- Returns:
- the codeblock
-
accept
Accept a visitor for this value.- Specified by:
acceptin interfaceAnnotationValue- Parameters:
visitor- Visitor- Returns:
- Visitor result
-
getParameterValue
Get a parameter value forJavaAnnotation.getNamedParameter(String).- Specified by:
getParameterValuein interfaceExpression- Returns:
- Parameter value
-
getPropertyMap
- Specified by:
getPropertyMapin interfaceJavaAnnotation
-
getProperty
- Specified by:
getPropertyin interfaceJavaAnnotation
-
toString
-