|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.asn1.ber.grammar.AbstractGrammar<C>
public abstract class AbstractGrammar<C extends Asn1Container>
The abstract Grammar which is the Mother of all the grammars. It contains the transitions table.
| Field Summary | |
|---|---|
protected GrammarTransition<C>[][] |
transitions
Table of transitions. |
| Constructor Summary | |
|---|---|
AbstractGrammar()
Default constructor |
|
| Method Summary | |
|---|---|
void |
executeAction(C container)
This method, when called, execute an action on the current data stored in the container. |
String |
getName()
Get the grammar name |
GrammarTransition<C> |
getTransition(Enum<?> state,
int tag)
Get the transition associated with the state and tag |
void |
setName(String name)
Set the grammar's name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GrammarTransition<C extends Asn1Container>[][] transitions
| Constructor Detail |
|---|
public AbstractGrammar()
| Method Detail |
|---|
public String getName()
getName in interface Grammar<C extends Asn1Container>public void setName(String name)
setName in interface Grammar<C extends Asn1Container>name - The grammar name
public GrammarTransition<C> getTransition(Enum<?> state,
int tag)
state - The current statetag - The current tag
public void executeAction(C container)
throws org.apache.directory.api.asn1.DecoderException
executeAction in interface Grammar<C extends Asn1Container>container - Store the data being processed.
org.apache.directory.api.asn1.DecoderException - Thrown when an unrecoverable error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||