Class SQLValuesHighlight.JavaScanner
- java.lang.Object
-
- org.pentaho.di.ui.trans.steps.tableinput.SQLValuesHighlight.JavaScanner
-
- Enclosing class:
- SQLValuesHighlight
public class SQLValuesHighlight.JavaScanner extends Object
A simple fuzzy scanner for Java
-
-
Field Summary
Fields Modifier and Type Field Description protected StringBuilderfBufferprotected StringfDocprotected intfEndprotected booleanfEofSeenprotected Map<?,?>fgFunctionsprotected Map<String,Integer>fgKeysprotected intfPosprotected intfStartTokenprotected Map<?,?>kfFunctionsprotected Map<String,Integer>kfKeys
-
Constructor Summary
Constructors Constructor Description JavaScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()Returns the ending location of the current token in the document.String[]getSQLKeywords()intgetStartOffset()Returns the starting location of the current token in the document.voidinitializeSQLFunctions()intnextToken()Returns the next lexical token in the document.protected intread()Returns next character.voidsetRange(String text)voidsetSQLKeywords(String[] kfKeywords)protected voidunread(int c)
-
-
-
Field Detail
-
fgFunctions
protected Map<?,?> fgFunctions
-
kfFunctions
protected Map<?,?> kfFunctions
-
fBuffer
protected StringBuilder fBuffer
-
fDoc
protected String fDoc
-
fPos
protected int fPos
-
fEnd
protected int fEnd
-
fStartToken
protected int fStartToken
-
fEofSeen
protected boolean fEofSeen
-
-
Method Detail
-
getLength
public final int getLength()
Returns the ending location of the current token in the document.
-
setSQLKeywords
public void setSQLKeywords(String[] kfKeywords)
-
getSQLKeywords
public String[] getSQLKeywords()
-
initializeSQLFunctions
public void initializeSQLFunctions()
-
getStartOffset
public final int getStartOffset()
Returns the starting location of the current token in the document.
-
nextToken
public int nextToken()
Returns the next lexical token in the document.
-
read
protected int read()
Returns next character.
-
setRange
public void setRange(String text)
-
unread
protected void unread(int c)
-
-