SWT LPEX
v3.0.5

com.ibm.lpex.core
Interface LpexSubparser

All Known Implementing Classes:
CicsLexer, SqlLexer

public interface LpexSubparser

Interface for document subparsers.


Method Summary
 void initialize()
          Initializes the subparser.
 int processToken()
          Retrieves and processes the next token.
 void reinitialize()
          Reinitializes the subparser.
 

Method Detail

initialize

public void initialize()
Initializes the subparser. The token manager is initialized for the same character input stream, and in the default lexical state. This method is normally called when the host parser switches the active lexer to this subparser.


reinitialize

public void reinitialize()
Reinitializes the subparser. The token manager is reinitialized for the same character input stream, and in the default lexical state. This method is normally called after a token manager error or exception (for example, encountered EOF in the middle of a token, or a bad character), after the token in error has been skipped and parsing is resumed.


processToken

public int processToken()
Retrieves and processes the next token.

Returns:
LEXER_RC_OK, LEXER_RC_EOF [+LEXER_RC_MORE], LEXER_RC_END

SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.