Method Summary |
|
public void | allowEmptyLineAsSeparator(boolean flag) |
public void | done() |
public int | findNextLineStart(int pos) |
public String | getCommand(int index) Return the command at the given index position. |
public String | getCommand(int index, boolean rightTrimCommand) Return the command at the given index position. |
public int | getCommandIndexAtCursorPos(int cursorPos) Return the command index for the command which is located at
the given index of the current script. |
public String | getDelimiterString() |
public int | getEndPosForCommand(int index) |
public int | getIndexInCommand(int commandIndex, int cursorPos) Return the index from the overall script mapped to the
index inside the specified command. |
public Iterator | getIterator() Return an Iterator which allows to iterate over
the commands from the script. |
public String | getNextCommand() Return the next
ScriptCommandDefinition from the script. |
public int | getSize() |
public int | getStartPosForCommand(int index) |
public boolean | hasNext() Check if more commands are present. |
public Object | next() Return the next SQL command from the script. |
public void | readScriptFromFile(File f) |
public void | readScriptFromFile(File f, String encoding) |
public void | remove() Not implemented, as removing commands is not possible. |
public void | setAlternateDelimiter(DelimiterDefinition alt) Sets the alternate delimiter. |
public void | setAlternateLineComment(String comment) |
public void | setCheckEscapedQuotes(boolean flag) Check for quote characters that are escaped using a
backslash. |
public void | setCheckForSingleLineCommands(boolean flag) |
public void | setDelimiter(DelimiterDefinition delim) |
public void | setDelimiters(DelimiterDefinition defaultDelim, DelimiterDefinition alternateDelim) Define the delimiters to be used. |
public void | setFile(File f) |
public void | setFile(File f, String encoding) Define the source file for this ScriptParser. |
public void | setReturnStartingWhitespace(boolean flag) |
public void | setScript(String aScript) Define the script to be parsed. |
public void | setSupportOracleInclude(boolean flag) |
public void | startIterator() |