|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xsl.process.RuleList
A list of rules organized for pattern matching.
The list automatically optimizes its internal storage before doing any matching. This optimization may be time consuming for a large lists, so there is a method available to force the optimization to happen up front.
Constructor Summary | |
RuleList()
|
Method Summary | |
void |
add(Rule rule)
Adds the specified rule to this rule list. |
void |
addAll(RuleList list)
Adds to this rule list all of the rules in the specified rule list. |
void |
dump(PrintWriter out,
int indent)
Dumps this object to the specified output stream. |
Rule[] |
getRules()
Optimizes this rule list for matching (if it isn't already optimized) and returns the optimized rules. |
void |
optimize()
Optimizes this rule list for matching. |
void |
removeAll(RuleList list)
Removes from this rule list all of the rules in the specified rule list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RuleList()
Method Detail |
public void add(Rule rule)
rule
- the rule to be addedpublic void addAll(RuleList list)
list
- the rule list to be addedpublic void removeAll(RuleList list)
list
- the rule list to be removedpublic Rule[] getRules()
compareTo
method. The returned array, and the
rules in the array, must not be modified even though there is no
enforcement mechanism.
Rule.compareTo(java.lang.Object)
public void optimize()
public void dump(PrintWriter out, int indent)
out
- the output stream to write toindent
- number of tabs to indent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |