Class Lexer


  • public final class Lexer
    extends java.lang.Object
    Seperates an input string of OQL into a stream of Tokens.
    Version:
    $Revision: 7950 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
    Author:
    Nissim Karpenstein
    • Constructor Summary

      Constructors 
      Constructor Description
      Lexer​(java.lang.String oqlQueryString)
      Creates a lexer which will seperate a string query into a series of tokens.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreTokens()
      Checks whether the query strin has been fully consumed.
      Token nextToken()
      Returns the next Token from the stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Lexer

        public Lexer​(java.lang.String oqlQueryString)
        Creates a lexer which will seperate a string query into a series of tokens.
        Parameters:
        oqlQueryString - The string representation of the OQL Query
    • Method Detail

      • hasMoreTokens

        public boolean hasMoreTokens()
        Checks whether the query strin has been fully consumed.
        Returns:
        True if there is text in the query which hasn't been tokenized, otherwise false.