@Documented @Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface RunTime
CreoleParameter to mark
parameters that are runtime parameters as opposed to init-time ones. This
annotation is named RunTime (camel-case) so as not to conflict with the
Runtime class in java.lang.
@Optional
@RunTime
@CreoleParameter
public void setAnnotationTypes(List<String> types) { ... }
While usually used to mark parameters as runtime parameters, this annotation
also supports an optional boolean flag, so it can be used as
@RunTime(false) to mark init-time parameters. This is not
generally necessary, as parameters are init-time by default, however if a
given parameter has been annotated as @RunTime in a superclass
this will be inherited. If you want to change the parameter to be init-time
in a subclass then you must use @RunTime(false).| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
value
Defaults to true but can be set to false to explicitly mark a parameter as
init-time rather than runtime.
|
Copyright © 2024 GATE. All rights reserved.