@Target(value=TYPE) @Retention(value=SOURCE) public @interface ADT
ADTProcessor generating basic ADT interfaces.
It will generate an interface for each number of subtypes
from subtypeNumberMin() to subtypeNumberMax() inclusively.| Modifier and Type | Fields and Description |
|---|---|
static String |
CURRENT_PACKAGE |
| Modifier and Type | Required Element and Description |
|---|---|
int |
subtypeNumberMax
Number of subtypes of the last generated interface.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
classNameFormat
Format of names of generated interfaces.
|
String |
package_
Full name of the package to generate interfaces in.
|
int |
subtypeNumberMin
Number of subtypes of the first generated interface.
|
public static final String CURRENT_PACKAGE
package_()public abstract int subtypeNumberMax
subtypeNumberMin().public abstract int subtypeNumberMin
1.
Default is 2.public abstract String package_
CURRENT_PACKAGE magic constant specified (default),
interfaces will be generated in the package of the type annotated with this annotation.public abstract String classNameFormat
String.format(String, Object...),
where the 1st argument is this string, and the 2nd one is number of subtypes of the ADT.
Default is "ADT%d", which leads to interface names like ADT2, ADT3, etc.Copyright © 2019. All rights reserved.