Class JavaBeanAttributesCollector.Getters
java.lang.Object
org.immutables.value.processor.meta.JavaBeanAttributesCollector.Getters
- Enclosing class:
JavaBeanAttributesCollector
Collects and caches list of getters for current type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeMirrorprivate final Map<String, ExecutableElement> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ExecutableElementprivate booleanisBoolean(TypeMirror type) private booleanisGetter(ExecutableElement executable) Checks ifexecutablefollows JavaBean convention for getter methods (likegetFoo)private StringGet attribute name from java bean getter.names()
-
Field Details
-
getters
-
boxedBooleanType
-
-
Constructor Details
-
Getters
-
-
Method Details
-
javaBeanAttributeName
Get attribute name from java bean getter. Some examples:getA -> a getAB -> AB (fist 2 chars are uppercase) getABC -> ABC (fist 2 chars are uppercase) getAb -> ab getAbc -> abc getFoo -> foo
See 8.8 Capitalization of inferred names in javabean spec
-
getter
-
names
-
isGetter
Checks ifexecutablefollows JavaBean convention for getter methods (likegetFoo) -
isBoolean
-