C
- The container typepublic abstract class AbstractGrammar<C extends Asn1Container> extends Object implements Grammar<C>
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.
|
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
|
public AbstractGrammar()
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 namepublic GrammarTransition<C> getTransition(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.Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.