|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.trans.Rule
public final class Rule
Rule: a template rule, or a strip-space rule used to support the implementation
Constructor Summary | |
---|---|
Rule(Pattern p,
RuleTarget o,
int prec,
double prio,
int seq)
Create a Rule. |
|
Rule(Rule r)
Copy a rule, including the chain of rules linked to it |
Method Summary | |
---|---|
int |
compareComputedRank(Rule other)
Rules have an ordering, based on their precedence and priority. |
int |
compareRank(Rule other)
Rules have an ordering, based on their precedence and priority. |
RuleTarget |
getAction()
|
Rule |
getNext()
|
Pattern |
getPattern()
|
int |
getPrecedence()
|
double |
getPriority()
|
int |
getRank()
|
int |
getSequence()
|
boolean |
isAlwaysMatches()
|
void |
setAction(RuleTarget action)
|
void |
setAlwaysMatches(boolean matches)
|
void |
setNext(Rule next)
|
void |
setRank(int rank)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rule(Pattern p, RuleTarget 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 copiedMethod Detail |
---|
public int getSequence()
public void setAction(RuleTarget action)
public RuleTarget getAction()
public Rule getNext()
public void setNext(Rule next)
public Pattern getPattern()
public int getPrecedence()
public double getPriority()
public void setAlwaysMatches(boolean matches)
public boolean isAlwaysMatches()
public void setRank(int rank)
public int getRank()
public int compareRank(Rule other)
other
- Another rule whose ordering rank is to be compared with this one
public int compareComputedRank(Rule other)
other
- Another rule whose ordering rank is to be compared with this one
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |