C - The container typepublic abstract class AbstractGrammar<C extends Asn1Container> extends Object implements Grammar<C>
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
The logger
|
private 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.
|
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
|
private static final org.slf4j.Logger LOG
protected GrammarTransition<C extends Asn1Container>[][] transitions
private String name
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 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.Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.