Class Token


  • public class Token
    extends Object
    A query token.
    Author:
    bratseth
    • Field Detail

      • substring

        public final Substring substring
        The raw substring causing this token, never null
      • image

        public final String image
        Lowercase image
    • Method Detail

      • isSpecial

        public boolean isSpecial()
        Returns whether this is a special token
      • getSubstring

        public Substring getSubstring()
        Returns the substring containing the image ins original form (including casing), as well as all the text surrounding the token
        Returns:
        the image in original casing, never null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object