|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Documented
@Target(value={FIELD,TYPE})
@Retention(value=CLASS)
public @interface Invariant
The class invariant assertion. It can be placed
at type members (classes, interfaces, ...) and
fields.
| Required Element Summary | |
|---|---|
String |
value
The value of this invariant. |
| Optional Element Summary | |
|---|---|
Context |
context
An invariant can be used in static and instance contexts or in instance only contexts. |
String |
msg
A message which is printed in case this invariant is violated. |
Visibility |
visibility
The Visibility of this invariant. |
| Element Detail |
|---|
@Code(translator={jass.modern.core.compile.transform.QuantifierTransformer.class,jass.modern.core.compile.transform.ModelVariableTransformer.class})
public abstract String value
public abstract String msg
Throwable.getMessage()public abstract Visibility visibility
Visibility of this invariant.
Note, that for instance the visibility of
a private field may not be public.
public abstract Context context
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||