org.eclipse.rdf4j.query.parser

## Class QueryPrologLexer.Token

- java.lang.Object
- - org.eclipse.rdf4j.query.parser.QueryPrologLexer.Token

- Enclosing class:
    QueryPrologLexer

      public static class QueryPrologLexer.Token
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `String` | `s`
    `QueryPrologLexer.TokenType` | `t`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Token(QueryPrologLexer.TokenType t, String s)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getStringValue()` Get the corresponding string value for this token.
    `QueryPrologLexer.TokenType` | `getType()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### t

          public final QueryPrologLexer.TokenType t

    - #### s

          public final String s

  - ### Constructor Detail

    - #### Token

          public Token(QueryPrologLexer.TokenType t,
                       String s)

  - ### Method Detail

    - #### getType

          public QueryPrologLexer.TokenType getType()

    - #### getStringValue

          public String getStringValue()

      Get the corresponding string value for this token. For example in the case of an `QueryPrologLexer.TokenType.IRI` token, this will return the string representation of that IRI.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.