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 voidsetProperty(String name, AnnotationValue value) toString()Methods inherited from class com.thoughtworks.qdox.model.impl.AbstractJavaModel
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
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
-