|
||||||||||
| 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
public abstract class AbstractGrammar
The abstract IGrammar which is the Mother of all the grammars. It contains the transitions table.
| Field Summary | |
|---|---|
protected String |
name
The grammar name |
protected IStates |
statesEnum
The grammar's states |
protected GrammarTransition[][] |
transitions
Table of transitions. |
| Constructor Summary | |
|---|---|
AbstractGrammar()
Default constructor |
|
| Method Summary | |
|---|---|
void |
executeAction(IAsn1Container container)
The main function. |
String |
getName()
Return the grammar's name |
IStates |
getStatesEnum()
Get the states of the current grammar |
GrammarTransition |
getTransition(int state,
int tag)
Get the transition associated with the state and tag |
void |
setName(String name)
Set the grammar's name |
void |
setStatesEnum(IStates statesEnum)
Set the states for this grammar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GrammarTransition[][] transitions
protected String name
protected IStates statesEnum
| Constructor Detail |
|---|
public AbstractGrammar()
| Method Detail |
|---|
public String getName()
getName in interface IGrammarpublic void setName(String name)
setName in interface IGrammarname - The new grammar name
public GrammarTransition getTransition(int state,
int tag)
state - The current statetag - The current tag
public void executeAction(IAsn1Container container)
throws DecoderException
executeAction in interface IGrammarcontainer - The Asn1Container
DecoderException - Thrown if anything went wrongpublic IStates getStatesEnum()
getStatesEnum in interface IGrammarpublic void setStatesEnum(IStates statesEnum)
statesEnum - The statesEnum to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||