|
|||||||||
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,
int min,
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()
|
int |
getMinImportPrecedence()
|
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, int min, 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 rulemin
- the minumum import precedence for xsl:apply-importsprio
- 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 int getMinImportPrecedence()
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 |