public abstract class AbstractGrammar<E extends Asn1Container> extends Object implements Grammar<E>
Modifier and Type | Field and Description |
---|---|
protected GrammarTransition<E>[][] |
transitions
Table of transitions.
|
Constructor and Description |
---|
AbstractGrammar()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
protected GrammarTransition<E extends Asn1Container>[][] transitions
public AbstractGrammar()
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 namepublic GrammarTransition<E> getTransition(Enum<?> state, int tag)
state
- The current statetag
- The current tagpublic void executeAction(E container) throws DecoderException
executeAction
in interface Grammar<E extends Asn1Container>
container
- The Asn1ContainerDecoderException
- Thrown if anything went wrongCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.