All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.polaris.core.annotation.Access Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package io.polaris.core.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author Qt
 * @since 1.8
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.SOURCE)
public @interface Access {

	boolean fields() default true;

	String fieldsSuffix() default "Fields";

	boolean fluent() default true;

	String fluentSuffix() default "Fluent";

	boolean map() default false;

	String mapSuffix() default "Map";

	boolean getters() default false;

	String gettersSuffix() default "Getters";

	boolean setters() default false;

	String settersSuffix() default "Setters";

	String[] excludeFields() default {};

	String[] excludeSetters() default {};

	String[] excludeGetters() default {};


	@Target({ElementType.FIELD})
	@Retention(RetentionPolicy.SOURCE)
	@interface ExcludeField {
	}

	@Target({ElementType.FIELD})
	@Retention(RetentionPolicy.SOURCE)
	@interface ExcludeGetter {
	}

	@Target({ElementType.FIELD})
	@Retention(RetentionPolicy.SOURCE)
	@interface ExcludeSetter {
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy