java.lang.Object
org.apache.jena.riot.tokens.Token
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
asInt()
long
asLong()
long
asLong
(long dft) org.apache.jena.graph.Node
asNode()
Token to Node, a very direct form that is purely driven off the token.org.apache.jena.graph.Node
Token to Node, with a prefix map.asString()
asWord()
boolean
long
final String
getImage()
final String
long
getLine()
final StringType
final Token
final Token
final TokenType
getType()
int
hashCode()
final boolean
boolean
boolean
boolean
isBNode()
boolean
isEOF()
boolean
boolean
isIRI()
final boolean
boolean
isNode()
boolean
boolean
isNumber()
boolean
isString()
boolean
isWord()
final Token
setImage
(char tokenImage) final Token
final Token
final Token
final Token
setSubToken1
(Token subToken) final Token
setSubToken2
(Token subToken) final Token
text()
static Token
tokenForInteger
(long value) static Token
tokenForNode
(org.apache.jena.graph.Node n) static Token
tokenForNode
(org.apache.jena.graph.Node node, String base, PrefixMap mapping) static Token
tokenForWord
(String word) toString()
toString
(boolean addLocation)
-
Field Details
-
ImageANY
- See Also:
-
ImageTrue
- See Also:
-
ImageFalse
- See Also:
-
-
Constructor Details
-
Token
-
Token
-
Token
-
Token
-
Token
public Token(long line, long column) -
Token
-
-
Method Details
-
getType
-
getImage
-
getImage2
-
getSubToken1
-
getSubToken2
-
getStringType
-
hasStringType
-
isLongString
public final boolean isLongString() -
setType
-
setImage
-
setImage
-
setImage2
-
setSubToken1
-
setSubToken2
-
setStringType
-
getColumn
public long getColumn() -
getLine
public long getLine() -
asString
-
asInt
public int asInt() -
asLong
public long asLong() -
asLong
public long asLong(long dft) -
asWord
-
text
-
toString
-
toString
-
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 org.apache.jena.graph.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
Token to Node, with a prefix map.Languages may need to process the token (.e.g test for end of file) and need more control than calling this method.
- Use bNode label as given
- No prefix or URI resolution.
- No checking.
-
hasType
-
hashCode
public int hashCode() -
equals
-
tokenForInteger
-
tokenForWord
-
tokenForNode
-
tokenForNode
-