public class SQLTokenizer
extends java.lang.Object
This is a framework internal class! Backward compatibility is not guaranteed.
Constructor and Description |
---|
SQLTokenizer(java.lang.String sqlText) |
Modifier and Type | Method and Description |
---|---|
int |
getType()
Return the type of the current (last consumed) token.
|
java.lang.String |
getValue()
Return the String value of the current (last consumed) token.
|
void |
mark()
Mark the current position in the underlying stream.
|
int |
nextNonSpaceToken()
Skip all white spaces.
|
int |
nextToken()
Consume next token from the underlying stream.
|
void |
reset()
Reset the current position in the underlying stream to the position
marked by the last call to mark() method.
|
java.lang.String |
toString() |
void |
unmark()
Unmark the current position in the underlying stream.
|
public int nextToken() throws java.lang.Exception
java.lang.Exception
public int nextNonSpaceToken() throws java.lang.Exception
java.lang.Exception
public java.lang.String getValue()
public int getType()
public void mark()
public void unmark()
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object