net.sf.saxon.trans
Class Rule
- Serializable
public final class Rule
extends java.lang.Object
implements Serializable
Rule: a template rule, or a strip-space rule used to support the implementation
Rule(Pattern p, 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
|
Rule
public Rule(Pattern p,
Object o,
int prec,
double prio,
int seq)
Create a Rule
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 rules
Rule
public Rule(Rule r)
Copy a rule, including the chain of rules linked to it
r
- the rule to be copied
getAction
public Object getAction()
getNext
public Rule getNext()
getPattern
public Pattern getPattern()
getPrecedence
public int getPrecedence()
getPriority
public double getPriority()
getSequence
public int getSequence()
setNext
public void setNext(Rule next)