@Beta
public static class AccessorsProcessor.Util
extends java.lang.Object
Constructor and Description |
---|
AccessorsProcessor.Util(TransformationContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addGetter(MutableFieldDeclaration field,
Visibility visibility) |
void |
addSetter(MutableFieldDeclaration field,
Visibility visibility) |
AnnotationReference |
getAccessorsAnnotation(AnnotationTarget it) |
java.lang.String |
getGetterName(FieldDeclaration it) |
AccessorType |
getGetterType(FieldDeclaration it) |
java.util.List<java.lang.String> |
getPossibleGetterNames(FieldDeclaration it) |
java.lang.String |
getSetterName(FieldDeclaration it) |
AccessorType |
getSetterType(FieldDeclaration it) |
boolean |
hasGetter(FieldDeclaration it) |
boolean |
hasSetter(FieldDeclaration it) |
boolean |
isBooleanType(TypeReference it) |
boolean |
shouldAddGetter(FieldDeclaration it) |
boolean |
shouldAddSetter(FieldDeclaration it) |
Visibility |
toVisibility(AccessorType type) |
java.lang.Object |
validateGetter(MutableFieldDeclaration field) |
void |
validateSetter(MutableFieldDeclaration field) |
public AccessorsProcessor.Util(TransformationContext context)
public Visibility toVisibility(AccessorType type)
public boolean hasGetter(FieldDeclaration it)
public boolean shouldAddGetter(FieldDeclaration it)
public AccessorType getGetterType(FieldDeclaration it)
public AnnotationReference getAccessorsAnnotation(AnnotationTarget it)
public java.lang.Object validateGetter(MutableFieldDeclaration field)
public java.lang.String getGetterName(FieldDeclaration it)
public java.util.List<java.lang.String> getPossibleGetterNames(FieldDeclaration it)
public boolean isBooleanType(TypeReference it)
public void addGetter(MutableFieldDeclaration field, Visibility visibility)
public AccessorType getSetterType(FieldDeclaration it)
public boolean hasSetter(FieldDeclaration it)
public java.lang.String getSetterName(FieldDeclaration it)
public boolean shouldAddSetter(FieldDeclaration it)
public void validateSetter(MutableFieldDeclaration field)
public void addSetter(MutableFieldDeclaration field, Visibility visibility)