Annotation Interface Conditional
Method Annotation to determine that a method can not be called unless a condition is fulfilled.
Condition information is provided with BooleanProvider
.
If BooleanProvider
for the condition is not specified the
method tagged with this annotation will not be called, (Condition is assumed false).
Please note that Conditional does not cross method parameter boundaries - (Conditional on a player method does not take into account conditionals of server).
-
Required Element Summary
-
Optional Element Summary
-
Element Details
-
value
String valueName of the condition limited to 50 characters.- Returns:
- Case sensitive string of max 50 characters.
-
-
-
negated
boolean negatedReverse the condition.Example: - Method with
Conditional("expires", negated = true)
will only be called when the condition "expires" is false.- Returns:
false
by default.
- Default:
- false
-