public class JavaBeansExtensions extends Object
| Constructor and Description |
|---|
JavaBeansExtensions() |
public String getterName(CharSequence propertyName, boolean isBoolean)
public String setterName(CharSequence propertyName)
public String setterName(VariableElement field)
public String getterName(CharSequence propertyName, TypeMirror type)
public String getterName(VariableElement field)
public boolean isBooleanGetterWithIs(@Extension
ExecutableElement method)
public boolean isGetterWithGet(@Extension
ExecutableElement method)
public boolean isGetter(@Extension
ExecutableElement method)
public boolean isSetter(@Extension
ExecutableElement method)
public boolean isAccessor(ExecutableElement method)
public PropertyImpl toProperty(@Extension ExecutableElement method)
public PropertyImpl toProperty(VariableElement field)
public Iterable<ExecutableElement> getters(Iterable<ExecutableElement> methods)
public Iterable<ExecutableElement> setters(Iterable<ExecutableElement> methods)
public boolean isSetterFor(@Extension
ExecutableElement method,
Property p)
public boolean isGetterFor(@Extension
ExecutableElement method,
Property p)
public Iterable<ExecutableElement> settersFor(Iterable<ExecutableElement> methods, Property p)
public VariableElement fieldFor(TypeElement typeElement, Property p, String stopSuperclass)
public List<PropertyImpl> propertiesFromGetters(TypeElement typeElement, String stopSuperclass)
public List<PropertyImpl> propertiesFromFields(TypeElement typeElement)
public List<PropertyImpl> properties(TypeElement typeElement, String stopSuperclass, boolean fromFields)
Copyright © 2018. All rights reserved.