Package 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 | Description
    --- | --- | ---
    `String` | `s` |
    `QueryPrologLexer.TokenType` | `t` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Token​(QueryPrologLexer.TokenType t, String s)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | 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`