java.io.Serializablepublic final class Rule
extends java.lang.Object
implements java.io.Serializable
| Constructor | 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 | 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 - the rule to be copied