public class SampleRule extends Rule
构造器和说明 |
---|
SampleRule() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
condition()
Returns a description of the condition that led to
Rule.eval() returning true |
java.lang.String |
description()
Describes what the rules does
|
boolean |
eval()
Evaluates the condition.
|
java.lang.String |
name()
Returns the name of the rule.
|
void |
trigger()
The action of the rule.
|
public java.lang.String name()
Rule
public java.lang.String description()
Rule
description
在类中 Rule
public boolean eval()
Rule
Rule.condition()
should return a non-null stringpublic java.lang.String condition()
Rule
Rule.eval()
returning truepublic void trigger() throws java.lang.Throwable
Rule
Rule.eval()
returned true