|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Documented @Target(value=TYPE) public @interface InLayer
Declares that the annotated type is part of the named layers.
@InLayer("edu.afit.smallworld.text.ui.CONSOLE_UI")
class Example { ... }
Declaring a type to be part of two different layers.
@InLayer("edu.afit.smallworld.text.ui.CONSOLE_UI, edu.afit.smallworld.text.ui.SWING_UI")
class Example { ... }
Alternatively:
@InLayer("edu.afit.smallworld.text.ui.{CONSOLE_UI, SWING_UI}")
class Example { ... }
@annotate tag.
/**
* @annotate InLayer("edu.afit.smallworld.text.ui.{CONSOLE_UI, SWING_UI}")
*/
class Example { ... }
Layer| Required Element Summary | |
|---|---|
String |
value
The one or more layers that the type is part of. |
| Element Detail |
|---|
public abstract String value
value = layer_spec *("," layer_spec)
layer_spec = dotted_name ; Layer name
layer_spec /= dotted_name "." "{" name *(",
" name) "}" ; Enumeration of layers
The braces "{" "}" are syntactic sugar used to enumerate a list of layers that share the same prefix.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||