Class Scanner

java.lang.Object
com.google.refine.grel.Scanner

public class Scanner extends Object
  • Field Details

    • _text

      protected String _text
    • _index

      protected int _index
    • _limit

      protected int _limit
  • Constructor Details

    • Scanner

      public Scanner(String s)
    • Scanner

      public Scanner(String s, int from, int to)
  • Method Details

    • getIndex

      public int getIndex()
    • next

      public Scanner.Token next(boolean regexPossible)
      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: