Class MDXValuesHighlight.JavaScanner
java.lang.Object
org.pentaho.di.ui.trans.steps.olapinput.MDXValuesHighlight.JavaScanner
- Enclosing class:
- MDXValuesHighlight
A simple fuzzy scanner for Java
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBuilderprotected Stringprotected intprotected booleanprotected Map<?,?> protected intprotected intprotected Map<?,?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intReturns the ending location of the current token in the document.final intReturns the starting location of the current token in the document.intReturns the next lexical token in the document.protected intread()Returns next character.voidvoidsetSQLKeywords(String[] kfKeywords) protected voidunread(int c)
-
Field Details
-
fgKeys
-
fgFunctions
-
kfKeys
-
kfFunctions
-
fBuffer
-
fDoc
-
fPos
protected int fPos -
fEnd
protected int fEnd -
fStartToken
protected int fStartToken -
fEofSeen
protected boolean fEofSeen
-
-
Constructor Details
-
JavaScanner
public JavaScanner()
-
-
Method Details
-
getLength
public final int getLength()Returns the ending location of the current token in the document. -
setSQLKeywords
-
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
-
unread
protected void unread(int c)
-