Class BeanConvention
java.lang.Object
org.inferred.freebuilder.processor.naming.BeanConvention
- All Implemented Interfaces:
NamingConvention
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPropertyNames(TypeElement valueType, ExecutableElement method) Verifiesmethodis an abstract getter following the JavaBean convention.private static booleanhasUpperCase(int codepoint) private voidprintNoImplementationMessage(TypeElement valueType, ExecutableElement method)
-
Field Details
-
GETTER_PATTERN
Regular expression matching bean-convention method names.We deviate slightly from the JavaBean convention by insisting that there must be a non-lowercase character immediately following the get/is prefix; this prevents ugly cases like 'get()' or 'getter()'.
-
GET_PREFIX
- See Also:
-
IS_PREFIX
- See Also:
-
messager
-
types
-
-
Constructor Details
-
BeanConvention
-
-
Method Details
-
getPropertyNames
Verifiesmethodis an abstract getter following the JavaBean convention. Any deviations will be logged as an error.- Specified by:
getPropertyNamesin interfaceNamingConvention
-
hasUpperCase
private static boolean hasUpperCase(int codepoint) -
printNoImplementationMessage
-