|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.asn1.ber.digester.RulesBase
A base Rules implementation using a fast pattern match.
| Field Summary | |
private BERDigester |
digester
|
private java.util.ArrayList |
rules
|
private TagTree |
tagTree
|
| Constructor Summary | |
RulesBase()
Creates a base Rules instance. |
|
| Method Summary | |
void |
add(int[] pattern,
Rule rule)
Register a new Rule instance matching the specified pattern. |
void |
clear()
Clear all existing Rule instance registrations. |
BERDigester |
getDigester()
Get the BERDigester instance with which this Rules
instance is associated. |
java.util.List |
match(int[] pattern)
Return a List of all registered Rule instances that match the specified nesting pattern, or a zero-length List if there are no matches. |
java.util.List |
match(org.apache.commons.collections.primitives.IntStack pattern)
Return a List of all registered Rule instances that match the specified nesting pattern, or a zero-length List if there are no matches. |
java.util.List |
rules()
Return a List of all registered Rule instances, or a zero-length List if there are no registered Rule instances. |
void |
setDigester(BERDigester digester)
Get the BERDigester instance with which this Rules
instance is associated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private TagTree tagTree
private java.util.ArrayList rules
private BERDigester digester
| Constructor Detail |
public RulesBase()
| Method Detail |
public void setDigester(BERDigester digester)
RulesBERDigester instance with which this Rules
instance is associated.
setDigester in interface Rulesdigester - the new BERDigester to be associated with this Rules
instancepublic BERDigester getDigester()
RulesBERDigester instance with which this Rules
instance is associated.
getDigester in interface Rules
public void add(int[] pattern,
Rule rule)
Rules
add in interface Rulespattern - Tag nesting pattern to be matched for this Rulerule - Rule instance to be registeredpublic void clear()
Rules
clear in interface Rulespublic java.util.List match(int[] pattern)
Rulesadd()
method.
match in interface Rulespattern - Nesting pattern to be matchedpublic java.util.List match(org.apache.commons.collections.primitives.IntStack pattern)
Rulesadd()
method. The IntStack argument should not be affected by the match call.
match in interface Rulespattern - Nesting pattern to be matchedpublic java.util.List rules()
Rulesadd()
method.
rules in interface Rules
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||