public abstract class AbstractGrammar<C extends Asn1Container> extends java.lang.Object implements Grammar<C>
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG
The logger
|
private java.lang.String |
name
The grammar name
|
protected GrammarTransition<C>[][] |
transitions
Table of transitions.
|
| Constructor and Description |
|---|
AbstractGrammar()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
executeAction(C container)
This method, when called, execute an action on the current data stored in
the container.
|
java.lang.String |
getName()
Get the grammar name
|
GrammarTransition<C> |
getTransition(java.lang.Enum<?> state,
int tag)
Get the transition associated with the state and tag
|
void |
setName(java.lang.String name)
Set the grammar's name
|
private static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
protected GrammarTransition<C extends Asn1Container>[][] transitions
private java.lang.String name
public java.lang.String getName()
getName in interface Grammar<C extends Asn1Container>public void setName(java.lang.String name)
setName in interface Grammar<C extends Asn1Container>name - The grammar namepublic GrammarTransition<C> getTransition(java.lang.Enum<?> state, int tag)
state - The current statetag - The current tagpublic void executeAction(C container) throws DecoderException
executeAction in interface Grammar<C extends Asn1Container>container - Store the data being processed.DecoderException - Thrown when an unrecoverable error occurs.