TAnnotation - type of annotationpublic interface TypeAnnotationToRule<TAnnotation extends Annotation>
| Modifier and Type | Interface and Description |
|---|---|
static class |
TypeAnnotationToRule.Registry
Registry of converters between annotations and serialization rules.
|
| Modifier and Type | Method and Description |
|---|---|
static List<SerializationRule> |
addRules(Class<?> clazz,
List<SerializationRule> rules)
Search for annotations on the given type, and try to convert them into
serialization rules.
|
static List<SerializationRule> |
addRules(SerializationClass type,
List<SerializationRule> rules)
Search for annotations on the given type, and try to convert them into
serialization rules.
|
SerializationRule |
createRule(TAnnotation annotation,
Class<?> type)
Create a rule from an annotation.
|
static List<TypeAnnotationToRule<?>> |
getAnnotationToRules(Annotation a)
Search for implementations to convert the given annotation into a rule.
|
static void |
processAnnotations(Class<?> clazz,
List<SerializationRule> newRules,
List<SerializationRule> rules)
Convert annotations into rules.
|
SerializationRule createRule(TAnnotation annotation, Class<?> type)
static List<SerializationRule> addRules(SerializationClass type, List<SerializationRule> rules)
static List<SerializationRule> addRules(Class<?> clazz, List<SerializationRule> rules)
static void processAnnotations(Class<?> clazz, List<SerializationRule> newRules, List<SerializationRule> rules)
static List<TypeAnnotationToRule<?>> getAnnotationToRules(Annotation a)
Copyright © 2019. All rights reserved.