@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface InLayer
@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 { ... }
Layerpublic 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.
Copyright © 2012 Surelogic, Inc.. All Rights Reserved.