Package org.pentaho.libformula.ui.editor
Class LibFormulaValuesHighlight.LibFormulaScanner
- java.lang.Object
-
- org.pentaho.libformula.ui.editor.LibFormulaValuesHighlight.LibFormulaScanner
-
- Enclosing class:
- LibFormulaValuesHighlight
public class LibFormulaValuesHighlight.LibFormulaScanner extends Object
A simple fuzzy scanner for LibFormula
-
-
Field Summary
Fields Modifier and Type Field Description protected StringBuilder
fBuffer
protected String
fDoc
protected int
fEnd
protected boolean
fEofSeen
protected Map<?,?>
fgFunctions
protected Map<String,Integer>
fgKeys
protected int
fPos
protected int
fStartToken
protected Map<?,?>
kfFunctions
protected Map<String,Integer>
kfKeys
-
Constructor Summary
Constructors Constructor Description LibFormulaScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLength()
Returns the ending location of the current token in the document.int
getStartOffset()
Returns the starting location of the current token in the document.int
nextToken()
Returns the next lexical token in the document.protected int
read()
Returns next character.void
setRange(String text)
void
setValueNames(String[] valueNames)
protected void
unread(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.
-
setValueNames
public void setValueNames(String[] valueNames)
-
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)
-
-