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

de.japkit.metaannotations.Switch Maven / Gradle / Ivy

There is a newer version: 1.11
Show newest version
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