Class TokenQuotedString

java.lang.Object
com.io7m.jsx.api.tokens.TokenQuotedString
All Implemented Interfaces:
TokenType

public final class TokenQuotedString extends Object implements TokenType
A quoted string.
  • Constructor Details

    • TokenQuotedString

      public TokenQuotedString(com.io7m.jlexing.core.LexicalPosition<URI> in_lex, String in_text)
      Parameters:
      in_lex - The lexical information
      in_text - The token text
  • Method Details

    • lexical

      public com.io7m.jlexing.core.LexicalPosition<URI> lexical()
      Specified by:
      lexical in interface TokenType
      Returns:
      The lexical information for the token
    • text

      public String text()
      Returns:
      The text content of the token
    • matchToken

      public <A, E extends Exception> A matchToken(TokenMatcherType<A,E> m) throws E
      Description copied from interface: TokenType
      Match a token.
      Specified by:
      matchToken in interface TokenType
      Type Parameters:
      A - The type of values returned by the matcher
      E - The type of exceptions raised by the matcher
      Parameters:
      m - The matcher
      Returns:
      The value returned by the matcher
      Throws:
      E - If the matcher raises E
    • toString

      public String toString()
      Overrides:
      toString in class Object