public final class Rule
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Rule(Pattern p,
java.lang.Object o,
int prec,
double prio,
int seq)
Create a Rule
|
Rule(Rule r)
Copy a rule, including the chain of rules linked to it
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAction() |
Rule |
getNext() |
Pattern |
getPattern() |
int |
getPrecedence() |
double |
getPriority() |
int |
getSequence() |
void |
setNext(Rule next) |
public Rule(Pattern p, java.lang.Object o, int prec, double prio, int seq)
p
- the pattern that this rule matcheso
- the object invoked by this rule (usually a Template)prec
- the precedence of the ruleprio
- the priority of the ruleseq
- a sequence number for ordering of rulespublic Rule(Rule r)
r
-