Class QueryParser.Token

  • Enclosing class:
    QueryParser

    private class QueryParser.Token
    extends java.lang.Object
    This is used to mark regions within the buffer that represent a valid token for either the name of a parameter or its value. This is used as an alternative to the ParseBuffer which requires memory to be allocated for storing the data read from the buffer. This requires only two integer values.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int len
      This represents the number of characters in the token.
      int off
      This represents the start offset within the buffer.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Token()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      In order to represent the Token as a value that can be used this converts it to a String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • len

        public int len
        This represents the number of characters in the token.
      • off

        public int off
        This represents the start offset within the buffer.
    • Constructor Detail

      • Token

        private Token()
    • Method Detail

      • toString

        public java.lang.String toString()
        In order to represent the Token as a value that can be used this converts it to a String. If the length of the token is less than or equal to zero this will return and empty string for the value.
        Overrides:
        toString in class java.lang.Object
        Returns:
        this returns a value representing the token