@Target(value={TYPE,ANNOTATION_TYPE,PACKAGE}) public @interface Dsl
| Modifier and Type | Optional Element and Description |
|---|---|
String |
className
Applies only to usage #1 (on class / interface)
It defines the name, of the root DSL generated interface.
|
String |
delegateMethod
Applies only to usage #1 (on class / interface)
If defines name of method, using which it's possible to create simple delegate of the DSL.
|
String |
factoryMethod
Applies only to usage #1 (on class / interface)
It defines name of the factory method, which creates instances of the root DSL.
|
String |
packageName
Applies only to usage #1 (on class / interface)
It defines the package, in which the generated root DSL interface will be generated.
|
String |
parameterName
Applies only to usage #1 (on class / interface)
It defines name of the parameter used in the generated factory method, which is used to pass
the instance of the DSL binding class / instance.
|
boolean |
useVarargs
Applies to both usages (however not yet properly reflected when used in use case #2)
Flag indicating, if last parameter of type array in DSL method should be automatically convert
to vararg.
|
public abstract String packageName
public abstract String className
public abstract String factoryMethod
public abstract String delegateMethod
public abstract String parameterName
public abstract boolean useVarargs
Copyright © 2019. All rights reserved.