|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.ber.grammar.AbstractGrammar<E>
public abstract class AbstractGrammar<E extends Asn1Container>
The abstract Grammar which is the Mother of all the grammars. It contains the transitions table.
| Field Summary | |
|---|---|
protected GrammarTransition<E>[][] |
transitions
Table of transitions. |
| Constructor Summary | |
|---|---|
AbstractGrammar()
Default constructor |
|
| Method Summary | |
|---|---|
void |
executeAction(E container)
The main function. |
String |
getName()
Return the grammar's name |
GrammarTransition<E> |
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<E extends Asn1Container>[][] transitions
| Constructor Detail |
|---|
public AbstractGrammar()
| Method Detail |
|---|
public String getName()
getName in interface Grammar<E extends Asn1Container>public void setName(String name)
setName in interface Grammar<E extends Asn1Container>name - The new grammar name
public GrammarTransition<E> getTransition(Enum<?> state,
int tag)
state - The current statetag - The current tag
public void executeAction(E container)
throws DecoderException
executeAction in interface Grammar<E extends Asn1Container>container - The Asn1Container
DecoderException - Thrown if anything went wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||