jass.modern
Annotation Type InvariantDefinitions
@Documented
@Container
@Retention(value=CLASS)
@Target(value=TYPE)
public @interface InvariantDefinitions
A container
-annotation for Invariant
iants.
This annotation can only be added to type declarations. E.g:
@Invariants(
{ @Invar("fType != null"), @Invar("fSize >= 0") })
class CU {
Object fType = new Object();
int fSize = 123;
//...
}
Note, that the Invariant
-annotation can be placed at types
and fields.
- Author:
- riejo
value
public abstract Invariant[] value
- Returns:
- The invariants captured in this container.