Annotation Type ConditionTrigger
@Documented @Trigger(template=ConditionTemplate.class) @Target(TYPE) public @interface ConditionTrigger
The trigger annotation for the example. Refers to the template describing the
class to be generated.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanshadowAll trigger annotations in japkit must have this annotation value.booleanshallGenerateMembersThis annotation value is used as condition to trigger generation of someField1, someMethod and someInnerClass.
-
Element Details
-
shadow
boolean shadowAll trigger annotations in japkit must have this annotation value. When generating a class, the trigger annotation is copied to the generated class and shadow is set to false to mark it as a copy.- Returns:
- true means, it is a copy of the original annotation.
- Default:
- false
-
shallGenerateMembers
boolean shallGenerateMembersThis annotation value is used as condition to trigger generation of someField1, someMethod and someInnerClass. Annotation values from the trigger annotation are provided as variables to be used in expressions, like "#{shallGenerateMembers}".- Returns:
- true means, the members shall be generated.
- Default:
- false
-