|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={METHOD,PARAMETER})
@Retention(value=RUNTIME)
public @interface ConditionCondition annotation can be used instead of accept methods for parameters and if () blocks inside infer methods.
| Required Element Summary | |
|---|---|
String[] |
value
Condition definition has the following format [parameter list:] condition expression. |
| Optional Element Summary | |
|---|---|
double |
cost
Cost of condition evaluation. |
| Element Detail |
|---|
public abstract String[] value
[parameter list:] condition expression. Parameter list is a comma separated list of parameter names,
parameters not used in the condition expression can be omitted. E.g. parent, child, sibling or, if child is not
used in the condition expression parent,,sibling. If parameter list is omitted, then arguments are named arg0, arg1, etc. for
method level conditions and arg for parameter level conditions.
Condition expression is a fragment of Java code returning boolean.
Rule instance is available through rule parameter.
public abstract double cost
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||