LPEX
3.6.7

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

void initialize()
Initializes the subparser. This method is normally called when the host parser switches the active lexer to this subparser.

The token manager is initialized for the same character input stream, and in the default lexical state.


reinitialize

void reinitialize()
Reinitializes the subparser. 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.

The token manager is reinitialized for the same character input stream, and in the default lexical state.


processToken

int processToken()
Retrieves and processes the next token.

Returns:
LEXER_RC_OK, LEXER_RC_EOF [+LEXER_RC_MORE], LEXER_RC_END

LPEX
3.6.7

Copyright © 2012 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.