Class Token

  • public final class Token
    extends java.lang.Object
    • Constructor Detail

      • Token

        public Token​(java.lang.String string)
      • Token

        public Token​(TokenType type,
                     java.lang.String image1)
      • Token

        public Token​(TokenType type,
                     java.lang.String image1,
                     java.lang.String image2)
      • Token

        public Token​(long line,
                     long column)
      • Token

        public Token​(Token token)
    • Method Detail

      • getImage

        public final java.lang.String getImage()
      • getImage2

        public final java.lang.String getImage2()
      • getCntrlCode

        public final int getCntrlCode()
      • getSubToken1

        public final Token getSubToken1()
      • getSubToken2

        public final Token getSubToken2()
      • getStringType

        public final StringType getStringType()
      • hasStringType

        public final boolean hasStringType​(StringType st)
      • isLongString

        public final boolean isLongString()
      • setImage

        public final Token setImage​(java.lang.String tokenImage)
      • setImage

        public final Token setImage​(char tokenImage)
      • setImage2

        public final Token setImage2​(java.lang.String tokenImage2)
      • setCntrlCode

        public final Token setCntrlCode​(int cntrlCode)
      • setSubToken1

        public final Token setSubToken1​(Token subToken)
      • setSubToken2

        public final Token setSubToken2​(Token subToken)
      • getColumn

        public long getColumn()
      • getLine

        public long getLine()
      • asString

        public java.lang.String asString()
      • asInt

        public int asInt()
      • asLong

        public long asLong()
      • asLong

        public long asLong​(long dft)
      • asWord

        public java.lang.String asWord()
      • text

        public java.lang.String text()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(boolean addLocation)
      • isEOF

        public boolean isEOF()
      • isWord

        public boolean isWord()
      • isString

        public boolean isString()
      • isNumber

        public boolean isNumber()
      • isNode

        public boolean isNode()
      • isNodeBasic

        public boolean isNodeBasic()
      • isBasicLiteral

        public boolean isBasicLiteral()
      • isInteger

        public boolean isInteger()
      • isIRI

        public boolean isIRI()
      • isBNode

        public boolean isBNode()
      • asNode

        public Node asNode()
        Token to Node, a very direct form that is purely driven off the token. Turtle and N-triples need to process the token and not call this: 1/ Use bNode label as given 2/ No prefix or URI resolution. 3/ No checking.
      • asNode

        public Node asNode​(PrefixMap pmap)
        Token to Node, with a prefix map Turtle and N-triples need to process the token and not call this: 1/ Use bNode label as given 2/ No prefix or URI resolution. 3/ No checking.
      • hasType

        public boolean hasType​(TokenType tokenType)
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        equals in class java.lang.Object
      • tokenForChar

        public static Token tokenForChar​(char character)
      • tokenForInteger

        public static Token tokenForInteger​(long value)
      • tokenForWord

        public static Token tokenForWord​(java.lang.String word)
      • tokenForNode

        public static Token tokenForNode​(Node n)
      • tokenForNode

        public static Token tokenForNode​(Node node,
                                         java.lang.String base,
                                         PrefixMap mapping)