de.japkit.metaannotations.Switch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of japkit-annotations Show documentation
Show all versions of japkit-annotations Show documentation
Contains the meta annotations that comprise the DSL for writing code templates.
package de.japkit.metaannotations;
public @interface Switch {
/**
* An expression to determine the source object for this switch rule.
*
* @return
*/
String src() default "";
/**
* As an alternative to the src expression, a function can be called to determine the source object.
*
* @return
*/
Class>[] srcFun() default {};
/**
*
* @return the language of the src expression. Defaults to Java EL.
*/
String srcLang() default "";
/**
* EL Variables within the scope of the switch.
*
* @return
*/
Var[] vars() default {};
Case[] value() default {};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy