|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Every ASN1 container must implement this interface.
Method Summary | |
void |
addGrammar(IGrammar grammar)
Add a new IGrammar to use |
int |
getCurrentGrammar()
|
int |
getCurrentGrammarType()
|
TLV |
getCurrentTLV()
Get the currentTLV |
IGrammar |
getGrammar()
Get the grammar |
TLV |
getParentTLV()
|
int |
getState()
Get the current grammar state |
IStates |
getStates()
|
int |
getTransition()
Get the transition |
void |
grammarEndAllowed(boolean grammarEndAllowed)
Set the flag to allow a end transition |
void |
grammarPopAllowed(boolean grammarPopAllowed)
Set the flag to allow a pop of the current grammar |
boolean |
isGrammarEndAllowed()
Check that we can have a end state after this transition |
boolean |
isGrammarPopAllowed()
Check that we can have a pop state after this transition |
int |
restoreGrammar()
restore the previous grammar (the one before a switch has occured) |
void |
setCurrentTLV(TLV tlv)
Set the current TLV |
void |
setInitGrammar(int grammar)
Set the first grammar to use |
void |
setParentTLV(TLV parentTLV)
Set the parent TLV |
void |
setState(int state)
Set the new current state |
void |
setTransition(int transition)
Update the transition from a state to another |
void |
switchGrammar(int currentState,
int grammar)
Switch to another grammar |
Method Detail |
public int getState()
public void setState(int state)
state
- The new statepublic void setCurrentTLV(TLV tlv)
tlv
- The current TLVpublic TLV getCurrentTLV()
public IGrammar getGrammar()
public void addGrammar(IGrammar grammar)
grammar
- The grammar to add.public void switchGrammar(int currentState, int grammar)
grammar
- The grammar to switch to.public int restoreGrammar()
public int getCurrentGrammar()
public void setInitGrammar(int grammar)
public int getTransition()
public void setTransition(int transition)
transition
- The transition to setpublic int getCurrentGrammarType()
public IStates getStates()
public TLV getParentTLV()
public void setParentTLV(TLV parentTLV)
public boolean isGrammarEndAllowed()
public void grammarEndAllowed(boolean grammarEndAllowed)
public boolean isGrammarPopAllowed()
public void grammarPopAllowed(boolean grammarPopAllowed)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |