org.apache.directory.shared.asn1.ber.grammar
Interface IStates


public interface IStates

This interface is used to store the different states of a grammar. While tracing debugging information, the methods to dump the current state as a string are called.

Author:
Apache Directory Project

Field Summary
static int END_STATE
          The END_STATE
static int GRAMMAR_END
          The ending state for every grammars
static int GRAMMAR_SWITCH_MASK
          The mask to filter grammar switch
static int INIT_GRAMMAR_STATE
          The initial state of every grammar
static int STATES_SWITCH_MASK
          The mask to filter states transition
 
Method Summary
 java.lang.String getGrammarName(IGrammar grammar)
          Return the grammar name from a grammar
 java.lang.String getGrammarName(int grammar)
          Return the grammar name from a grammar number
 java.lang.String getState(int grammar, int state)
          Get the current state for a specified grammar
 

Field Detail

INIT_GRAMMAR_STATE

public static final int INIT_GRAMMAR_STATE
The initial state of every grammar

See Also:
Constant Field Values

GRAMMAR_END

public static final int GRAMMAR_END
The ending state for every grammars

See Also:
Constant Field Values

END_STATE

public static final int END_STATE
The END_STATE

See Also:
Constant Field Values

GRAMMAR_SWITCH_MASK

public static final int GRAMMAR_SWITCH_MASK
The mask to filter grammar switch

See Also:
Constant Field Values

STATES_SWITCH_MASK

public static final int STATES_SWITCH_MASK
The mask to filter states transition

See Also:
Constant Field Values
Method Detail

getState

public java.lang.String getState(int grammar,
                                 int state)
Get the current state for a specified grammar


getGrammarName

public java.lang.String getGrammarName(IGrammar grammar)
Return the grammar name from a grammar


getGrammarName

public java.lang.String getGrammarName(int grammar)
Return the grammar name from a grammar number



Copyright © 2003-2006 . All Rights Reserved.