-
Notifications
You must be signed in to change notification settings - Fork 3
DSLAction Annotation
Malte Isberner edited this page Jan 19, 2014
·
1 revision
The @DSLAction
annotation controls the role of a method of the DSL implementation.
This annotation may only be used to annotate methods of a class or interface which is itself annotated with a GenerateEmbeddedDSL annotation. It has no mandatory parameters. If used without any parameter, it flags a method as being available as a DSL action. This only has an effect if enableAllMethods
is set to false
in @GenerateEmbeddedDSL.
-
enabled
: controls whether this method is available as a DSL action. If set tofalse
, this method will not be available as a DSL action. The value of this parameter always overrides theenableAllMethods
setting of @GenerateEmbeddedDSL. It is discouraged to explicitly set any of the other options if this parameter is set tofalse
, doing so will result in a warning. -
global
: controls whether the corresponding DSL action is a global action. The default isfalse
. -
terminator
: controls whether the corresponding DSL action is a terminator action. The default isfalse
. -
autoVarArgs
: controls whether a varargs overload will automatically be generated if applicable. The default depends on theautoVarArgs
setting of @GenerateEmbeddedDSL.