Package jodd.util
Class AnnotationParser.Reader
java.lang.Object
jodd.util.AnnotationParser.Reader
- Enclosing class:
AnnotationParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation> Returns the annotation type this reader is for.booleanreadBoolean(String name, boolean defaultValue) Reads boolean element from the annotation.readElement(String name) Reads annotation element as an object.intReads int element from the annotation.readString(String name, String defaultValue) Reads string element from the annotation.protected StringreadStringElement(String name) Reads non-empty, trimmed, annotation element value.
-
Field Details
-
annotatedElement
-
-
Constructor Details
-
Reader
-
-
Method Details
-
annotationType
Returns the annotation type this reader is for. -
readStringElement
Reads non-empty, trimmed, annotation element value. If annotation value is missing, it will read value from default annotation. If still missing, returnsnull. -
readElement
Reads annotation element as an object. If annotation value is missing, it will be read from default annotation. If still missing, returnsnull. -
readString
Reads string element from the annotation. Empty strings are detected and default value is returned instead. -
readBoolean
Reads boolean element from the annotation. -
readInt
Reads int element from the annotation.
-