Parsed
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| private static final Set | |
| private static Annotation | |
| private static Class | |
| private static AnnotatedElement |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if every field and method annotated with Parsed in the given class maps to an index, otherwise false.a class whose beanClass)Parsed annotations will be processed.Runs through all annotations of a given class to identify whether all annotated fields and methods
(with the |
| public static boolean | Returns: true if every field and method annotated with Parsed in the given class maps to an index, otherwise false.a class whose beanClass)Parsed annotations will be processed.Runs through all annotations of a given class to identify whether all annotated fields and methods
(with the |
| private static boolean | |
| public static boolean | Returns: true if every field and method annotated with Parsed in the given class maps to a header name, otherwise false.a class whose beanClass)Parsed annotations will be processed.Runs through all annotations of a given class to identify whether all annotated fields and methods
(with the |
| public static boolean | Returns: true if every field and method annotated with Parsed in the given class maps to a header name, otherwise false.a class whose beanClass)Parsed annotations will be processed.Runs through all annotations of a given class to identify whether all annotated fields and methods
(with the |
| public static void | applyFormatSettings(Object
the formatter instance formatter, String[] a sequence of key-value pairs, where the key is a property of the formatter
object to be set to the following value via reflection propertiesAndValues)Applied the configuration of a formatter object ( |
| public static EnumConversion | |
| public static String[] | Returns: an array of column names used by the given classa class whose beanClass, MethodFilter Parsed annotations will be processed.a filter to exclude annotated methods that won't be used for parsing or writing filter)Runs through all |
| pack-priv static String | |
| private static Locale | |
| private static String | |
| private static TimeZone | |
| public static List | Returns: the list of annotation elements applied to the given element, that are also members of the given package.the element (method, field, etc) whose annotations will be extracted annotatedElement, Package the package of the annotations that should be returned aPackage)Returns all annotations applied to an element, excluding the ones not in a given package. |
| private static void | findAllAnnotationsInPackage(AnnotatedElement annotatedElement, Package aPackage, ArrayList<? super Annotation> found, Set<Annotation> visited)
|
| public static synchronized < the type of the annotation being searched for A extends Annotation> A | Returns: the annotation associated with the given element, ornull if not found.the element whose annotations will be searched annotatedElement, Class<A> the type of annotation to search for annotationType)Searches for an annotation of a given type that's been applied to an element either directly (as a regular annotation) or indirectly (as a meta-annotations, i.e. an annotation that has annotations). |
| private static <A> A | findAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType, Set<Annotation> visited, Stack<Annotation> path)
|
| public static < the type of the annotation to return T extends Annotation> T | Returns: the annotation of the given class or its most immediate parent, ornull if not found.the class whose hierarchy will be searched beanClass, Class<T> the annotation to locate annotation)Searches for a given annotation in the hierarchy of a class |
| private static Class | |
| public static Headers | Returns: theHeaders annotation of the given class or its most immediate parent, or null if not found.the class whose hierarchy will be searched beanClass)Searches for the |
| public static Map | getAllFields(Class<?>
a class whose fields will be returned. beanClass)Returns all fields available from a given class. |
| public static List | Returns: a list ofMethods that conform to the given filter.a class whose methods will be returned. beanClass, MethodFilter filter to apply over annotated methods when the class is being used for reading data from beans (to write values to an output)
or when writing values into beans (while parsing). It is used to choose either a "get" or a "set"
method annotated with filter)Parsed, when both methods target the same field.Returns all methods available from a given class |
| public static List | Returns: a list ofField with at least one annotationa class whose methods will be returned. beanClass)Returns all attributes available from a given class that have an annotation. |
| public static < the expected annotation type A extends Annotation> List | Returns: a list ofField with at least one annotationa class whose methods will be returned. beanClass, Class<A> the type of annotation to consider annotationType)Returns all attributes available from a given class that have an annotation. |
| public static < the expected annotation type A extends Annotation> List | Returns: a list ofMethod with at least one annotationa class whose methods will be returned. beanClass, MethodFilter filter to apply over annotated methods when the class is being used for reading data from beans (to write values to an output)
or when writing values into beans (while parsing). It is used to choose either a "get" or a "set"
method annotated with filter, Class<A> Parsed, when both methods target the same field.the annotation type to consider annotationType)Returns all methods available from a given class that have a specific annotation. |
| public static List | Returns: a list ofMethod with at least one annotationa class whose methods will be returned. beanClass, MethodFilter filter to apply over annotated methods when the class is being used for reading data from beans (to write values to an output)
or when writing values into beans (while parsing). It is used to choose either a "get" or a "set"
method annotated with filter)Parsed, when both methods target the same field.Returns all methods available from a given class that have an annotation. |
| public static Conversion | Returns: TheConversion that should be applied to the typethe type to have conversions applied to classType, Annotation the annotation from annotation)com. that identifies a Conversion instance.Identifies the proper conversion for a given type and an annotation from the package |
| public static Conversion | getConversion(Class<T> fieldType, AnnotatedElement target, Annotation annotation, String nullRead, String nullWrite)
|
| public static Class | |
| public static Conversion | Returns: TheConversion that should be applied to the field typeThe type of field to have conversions applied to. fieldType, AnnotatedElement the annotated attribute of method that has the annotation target, Parsed the parsed)Parsed annotation from com..Identifies the proper conversion for a given type |
| public static Conversion | Returns: The defaultConversion applied to the given field.The field or method whose values must be converted from a given parsed String. target)Returns the default |
| public static final Object | Returns: the default value for the given primitive type, ornull if the type is not primitive.the primitive type whose default value will be returned. type)Returns Java's default value for a given type, in a primitive type wrapper. |
| public static List | Returns: a list of fields ordered by their processing sequencethe class whose field sequence will be returned. beanClass, boolean flag indicating whether processNested, HeaderTransformer Nested annotations should be processeda transformer, MethodFilter HeaderTransformer instance to be used for transforming headers of a given Nested attribute.filter to apply over annotated methods when the class is being used for reading data from beans (to write values to an output)
or when writing values into beans (while parsing). It is used to choose either a "get" or a "set"
method annotated with filter)Parsed, when both methods target the same field.Returns a list of fields with |
| private static List | getFieldSequence(Class<T> beanClass, boolean processNested, List<Integer> indexes, HeaderTransformer transformer, MethodFilter filter)
|
| public static String | |
| public static String | |
| private static String | Returns: the default value if it is not the String literal "null" or "'null'".If "null" was provided, then null will be returned. If "'null'" was provided, then "null" will be returned. The string returned by defaultValue)and Parsed#defaultNullWrite()Converts the special "null" strings that might be provided by |
| public static String | |
| public static Integer[] | Returns: an array of column indexes used by the given classa class whose beanClass, MethodFilter Parsed annotations will be processed.filter to apply over annotated methods when the class is being used for reading data from beans (to write values to an output)
or when writing values into beans (while parsing). It is used to choose either a "get" or a "set"
method annotated with filter)Parsed, when both methods target the same field.Runs through all |
| public static Class | |
| private static Object | |
| private static void | |
| private static boolean | |
| public static <T> T | |
| private static void | processAnnotations(AnnotatedElement element, boolean processNested, List<Integer> indexes, List<TransformedHeader> tmp, Map<AnnotatedElement, List<TransformedHeader>> nestedReplacements, HeaderTransformer transformer, MethodFilter filter)
|
| customAnnotationTypes | back to summary |
|---|---|
| private static final Set<Class<T>> customAnnotationTypes | |
| javaLangAnnotationTypes | back to summary |
|---|---|
| private static final Set<Class<T>> javaLangAnnotationTypes | |
| lastAnnotationFound | back to summary |
|---|---|
| private static Annotation lastAnnotationFound | |
| lastProcessedAnnotationType | back to summary |
|---|---|
| private static Class<? extends Annotation> lastProcessedAnnotationType | |
| lastProcessedElement | back to summary |
|---|---|
| private static AnnotatedElement lastProcessedElement | |
| AnnotationHelper | back to summary |
|---|---|
| private AnnotationHelper() | |
| allFieldsIndexBasedForParsing | back to summary |
|---|---|
| public static boolean allFieldsIndexBasedForParsing(Class<?> beanClass) Runs through all annotations of a given class to identify whether all annotated fields and methods
(with the | |
| allFieldsIndexBasedForWriting | back to summary |
|---|---|
| public static boolean allFieldsIndexBasedForWriting(Class<?> beanClass) Runs through all annotations of a given class to identify whether all annotated fields and methods
(with the | |
| allFieldsIndexOrNameBased | back to summary |
|---|---|
| private static boolean allFieldsIndexOrNameBased(boolean searchName, Class<?> beanClass, MethodFilter filter) | |
| allFieldsNameBasedForParsing | back to summary |
|---|---|
| public static boolean allFieldsNameBasedForParsing(Class<?> beanClass) Runs through all annotations of a given class to identify whether all annotated fields and methods
(with the | |
| allFieldsNameBasedForWriting | back to summary |
|---|---|
| public static boolean allFieldsNameBasedForWriting(Class<?> beanClass) Runs through all annotations of a given class to identify whether all annotated fields and methods
(with the | |
| applyFormatSettings | back to summary |
|---|---|
| public static void applyFormatSettings(Object formatter, String[] propertiesAndValues) Applied the configuration of a formatter object ( | |
| createDefaultEnumConversion | back to summary |
|---|---|
| public static EnumConversion | |
| deriveHeaderNamesFromFields | back to summary |
|---|---|
| public static String[] deriveHeaderNamesFromFields(Class<?> beanClass, MethodFilter filter) Runs through all
| |
| describeElement | back to summary |
|---|---|
| pack-priv static String describeElement(AnnotatedElement element) | |
| extractLocale | back to summary |
|---|---|
| private static Locale extractLocale(String[] options) | |
| extractOption | back to summary |
|---|---|
| private static String extractOption(String[] options, String key) | |
| extractTimeZone | back to summary |
|---|---|
| private static TimeZone extractTimeZone(String[] options) | |
| findAllAnnotationsInPackage | back to summary |
|---|---|
| public static List Returns all annotations applied to an element, excluding the ones not in a given package.
| |
| findAllAnnotationsInPackage | back to summary |
|---|---|
| private static void findAllAnnotationsInPackage(AnnotatedElement annotatedElement, Package aPackage, ArrayList<? super Annotation> found, Set<Annotation> visited) | |
| findAnnotation | back to summary |
|---|---|
| public static synchronized <A extends Annotation> A findAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType) Searches for an annotation of a given type that's been applied to an element either directly (as a regular annotation) or indirectly (as a meta-annotations, i.e. an annotation that has annotations).
| |
| findAnnotation | back to summary |
|---|---|
| private static <A> A findAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType, Set<Annotation> visited, Stack<Annotation> path) | |
| findAnnotationInClass | back to summary |
|---|---|
| public static <T extends Annotation> T findAnnotationInClass(Class<?> beanClass, Class<T> annotation) Searches for a given annotation in the hierarchy of a class | |
| findAnnotationMethodType | back to summary |
|---|---|
| private static Class | |
| findHeadersAnnotation | back to summary |
|---|---|
| public static Headers findHeadersAnnotation(Class<?> beanClass) Searches for the | |
| getAllFields | back to summary |
|---|---|
| public static Map Returns all fields available from a given class.
| |
| getAllMethods | back to summary |
|---|---|
| public static List Returns all methods available from a given class
| |
| getAnnotatedFields | back to summary |
|---|---|
| public static List Returns all attributes available from a given class that have an annotation. | |
| getAnnotatedFields | back to summary |
|---|---|
| public static <A extends Annotation> List Returns all attributes available from a given class that have an annotation. | |
| getAnnotatedMethods | back to summary |
|---|---|
| public static <A extends Annotation> List Returns all methods available from a given class that have a specific annotation.
| |
| getAnnotatedMethods | back to summary |
|---|---|
| public static List Returns all methods available from a given class that have an annotation.
| |
| getConversion | back to summary |
|---|---|
| public static Conversion Identifies the proper conversion for a given type and an annotation from the package
| |
| getConversion | back to summary |
|---|---|
public static Conversion
| |
| getDeclaringClass | back to summary |
|---|---|
| public static Class | |
| getDefaultConversion | back to summary |
|---|---|
| public static Conversion Identifies the proper conversion for a given type
| |
| getDefaultConversion | back to summary |
|---|---|
| public static Conversion Returns the default
| |
| getDefaultPrimitiveValue | back to summary |
|---|---|
| public static final Object getDefaultPrimitiveValue(Class<T> type) Returns Java's default value for a given type, in a primitive type wrapper. | |
| getFieldSequence | back to summary |
|---|---|
| public static List Returns a list of fields with
| |
| getFieldSequence | back to summary |
|---|---|
| private static List | |
| getName | back to summary |
|---|---|
| public static String getName(AnnotatedElement element) | |
| getNullReadValue | back to summary |
|---|---|
| public static String getNullReadValue(AnnotatedElement target, Parsed parsed) | |
| getNullValue | back to summary |
|---|---|
| private static String getNullValue(String defaultValue) Converts the special "null" strings that might be provided by
| |
| getNullWriteValue | back to summary |
|---|---|
| public static String getNullWriteValue(AnnotatedElement target, Parsed parsed) | |
| getSelectedIndexes | back to summary |
|---|---|
| public static Integer[] getSelectedIndexes(Class<?> beanClass, MethodFilter filter) Runs through all
| |
| getType | back to summary |
|---|---|
| public static Class | |
| invoke | back to summary |
|---|---|
| private static Object invoke(Annotation annotation, Method method) | |
| invokeSetter | back to summary |
|---|---|
| private static void invokeSetter(Object formatter, PropertyWrapper property, final String value) | |
| isCustomAnnotation | back to summary |
|---|---|
| private static boolean isCustomAnnotation(Annotation annotation) | |
| newInstance | back to summary |
|---|---|
| public static <T> T newInstance(Class<T> parent, Class<T> type, String[] args) | |
| processAnnotations | back to summary |
|---|---|
| private static void processAnnotations(AnnotatedElement element, boolean processNested, List<Integer> indexes, List<TransformedHeader> tmp, Map<AnnotatedElement, List<TransformedHeader>> nestedReplacements, HeaderTransformer transformer, MethodFilter filter) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Class | annotationType()
Implements java. |
| NO_ANNOTATIONS | back to summary |
|---|---|
| private NO_ANNOTATIONS() | |
| annotationType | back to summary |
|---|---|
| public Class Implements java. Doc from java. Returns the annotation interface of this annotation.
| |