Package com.google.refine.grel
Class Scanner
java.lang.Object
com.google.refine.grel.Scanner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_text
-
_index
protected int _index -
_limit
protected int _limit
-
-
Constructor Details
-
Scanner
-
Scanner
-
-
Method Details
-
getIndex
public int getIndex() -
next
The regexPossible flag is used by the parser to hint the scanner what to do when it encounters a slash. Since the divide operator / and the opening delimiter of a regex literal are the same, but divide operators and regex literals can't occur at the same place in an expression, this flag is a cheap way to distinguish the two without having to look ahead.- Parameters:
regexPossible-- Returns:
-