Class Token


  • public class Token
    extends LexicalUnit
    Represents a still unidentified Turtle token.
    • Constructor Summary

      Constructors 
      Constructor Description
      Token​(java.lang.String value)
      Constructor with value.
      Token​(RdfTurtleReader contentHandler, Context context)
      Constructor with arguments.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void parse()
      Contains the parsing logic of this lexical unit.
      java.lang.Object resolve()
      Resolves the current value as a reference or a literal or a graph of links according to the current context.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Token

        public Token​(RdfTurtleReader contentHandler,
                     Context context)
              throws java.io.IOException
        Constructor with arguments.
        Parameters:
        contentHandler - The document's parent handler.
        context - The parsing context.
        Throws:
        java.io.IOException
      • Token

        public Token​(java.lang.String value)
        Constructor with value.
        Parameters:
        value - The value of the current lexical unit.
    • Method Detail

      • parse

        public void parse()
                   throws java.io.IOException
        Description copied from class: LexicalUnit
        Contains the parsing logic of this lexical unit.
        Specified by:
        parse in class LexicalUnit
        Throws:
        java.io.IOException
      • resolve

        public java.lang.Object resolve()
        Description copied from class: LexicalUnit
        Resolves the current value as a reference or a literal or a graph of links according to the current context.
        Specified by:
        resolve in class LexicalUnit
        Returns:
        The current value as a reference or a literal or a graph of links according to the current context.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object