de.japkit.metaannotations.Getter Maven / Gradle / Ivy
package de.japkit.metaannotations;
import javax.lang.model.element.Modifier;
public @interface Getter {
/**
* By default, this rule is active.
* To switch it on or of case by case, a boolean expression can be used here.
*
* @return
*/
String cond() default "";
/**
* The expression language for the cond expression.
* @return
*/
String condLang() default "";
/**
* As an alternative to the cond expression, a boolean function can be called.
*
* @return
*/
Class>[] condFun() default {};
Modifier[] modifiers() default { Modifier.PUBLIC };
Annotation[] annotations() default {};
/**
*
* @return true means, the "get" / "is" prefix is omitted.
*/
boolean fluent() default false;
/**
* Names of code fragments to surround the return expression.
*/
String[] surroundReturnExprFragments() default {};
/**
*
* @return names of the fragments to surround the generated code body.
*/
String[] surroundingFragments() default{};
/**
*
* @return names of the fragments to be inserted before the generated code body.
*/
String[] beforeFragments() default{};
/**
*
* @return names of the fragments to be inserted before the generated code body.
*/
String[] afterFragments() default{};
/**
*
* @return an expression to create the JavaDoc comment
*/
String commentExpr() default "";
/**
*
* @return the expression language for commentExpr
*/
String commentLang() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy