TAnnotation - type of annotationpublic interface AttributeAnnotationToRuleOnType<TAnnotation extends Annotation>
| Modifier and Type | Interface and Description |
|---|---|
static class |
AttributeAnnotationToRuleOnType.Registry
Registry of converters between annotations and serialization rules.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addRuleFromAttribute(SerializationClass.Attribute attr,
Annotation a,
AttributeAnnotationToRuleOnType toRule,
List<SerializationRule> rules,
List<SerializationRule> newRules)
Create a rule from annotation and add it to the new rules.
|
static List<SerializationRule> |
addRules(SerializationClass type,
boolean onGet,
List<SerializationRule> rules)
Search for annotations on the given type, and try to convert them into
serialization rules.
|
SerializationRule |
createRule(TAnnotation annotation,
SerializationClass.Attribute attribute)
Create a rule from an annotation.
|
static List<AttributeAnnotationToRuleOnType<?>> |
getAnnotationToRules(Annotation a)
Search for implementations to convert the given annotation into a rule.
|
SerializationRule createRule(TAnnotation annotation, SerializationClass.Attribute attribute)
static List<SerializationRule> addRules(SerializationClass type, boolean onGet, List<SerializationRule> rules)
static void addRuleFromAttribute(SerializationClass.Attribute attr, Annotation a, AttributeAnnotationToRuleOnType toRule, List<SerializationRule> rules, List<SerializationRule> newRules)
static List<AttributeAnnotationToRuleOnType<?>> getAnnotationToRules(Annotation a)
Copyright © 2019. All rights reserved.