org.unitils.dbmaintainer.script.parsingstate
Interface ParsingState

All Known Implementing Classes:
BaseParsingState, InBlockCommentParsingState, InDoubleQuotesParsingState, InLineCommentParsingState, InSingleQuotesParsingState, NormalParsingState, OracleNormalParsingState

public interface ParsingState

A state of a parser that can handle a character and knows when the state ends and is transfered to another state. For example, an in-block-comment state knows when the block-comment ends and then transfers control to the initial state.

Author:
Tim Ducheyne, Filip Neven

Method Summary
 ParsingState handleNextChar(char previousChar, char currentChar, char nextChar, StatementBuilder statementBuilder)
          Handles the next character in the script.
 

Method Detail

handleNextChar

ParsingState handleNextChar(char previousChar,
                            char currentChar,
                            char nextChar,
                            StatementBuilder statementBuilder)
Handles the next character in the script.

Parameters:
previousChar - The previous char, 0 if none
currentChar - The current char
nextChar - The next char, 0 if none
statementBuilder - The statement builder, not null
Returns:
The next parsing state, null if the end of the statement is reached


Copyright © 2011. All Rights Reserved.