private boolean hasLombokPublicAccessor(MetadataGenerationEnvironment env,
			boolean getter) {
		String annotation = (getter ? LOMBOK_GETTER_ANNOTATION
				: LOMBOK_SETTER_ANNOTATION);
		AnnotationMirror lombokMethodAnnotationOnField = env.getAnnotation(getField(),
				annotation);
		if (lombokMethodAnnotationOnField != null) {
			return isAccessLevelPublic(env, lombokMethodAnnotationOnField);
		}
		AnnotationMirror lombokMethodAnnotationOnElement = env
				.getAnnotation(getOwnerElement(), annotation);
		if (lombokMethodAnnotationOnElement != null) {
			return isAccessLevelPublic(env, lombokMethodAnnotationOnElement);
		}
		return (env.getAnnotation(getOwnerElement(), LOMBOK_DATA_ANNOTATION) != null);
	}
private boolean hasLombokPublicAccessor ( MetadataGenerationEnvironment env , boolean getter ) { String annotation = ( getter ? LOMBOK_GETTER_ANNOTATION : LOMBOK_SETTER_ANNOTATION ) ; AnnotationMirror lombokMethodAnnotationOnField = env . getAnnotation ( getField ( ) , annotation ) ; if ( lombokMethodAnnotationOnField != null ) { return isAccessLevelPublic ( env , lombokMethodAnnotationOnField ) ; } AnnotationMirror lombokMethodAnnotationOnElement = env . getAnnotation ( getOwnerElement ( ) , annotation ) ; if ( lombokMethodAnnotationOnElement != null ) { return isAccessLevelPublic ( env , lombokMethodAnnotationOnElement ) ; } return ( env . getAnnotation ( getOwnerElement ( ) , LOMBOK_DATA_ANNOTATION ) != null ) ; }
Determine if the current {@link #getField() field} defines a public accessor using
lombok annotations.
@param env the {@link MetadataGenerationEnvironment}
@param getter {@code true} to look for the read accessor, {@code false} for the
write accessor
@return {@code true} if this field has a public accessor of the specified type