public class TurtleParser extends ParserBase implements TurtleParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
TurtleParserTokenManager |
token_source
Generated Token Manager.
|
A2Z, A2ZN, ANON, ARROW, AT, BASE, BLANK_NODE_LABEL, BOM, CARROT, COLON, COMMA, DATATYPE, DECIMAL, DEFAULT, DIGITS, DOLLAR, DOT, DOUBLE, ECHAR, EOF, EQ, EXPONENT, FALSE, FPATH, INTEGER, IRIref, KW_A, LANGTAG, LBRACE, LBRACKET, LPAREN, NIL, PLING, PN_CHARS, PN_CHARS_BASE, PN_CHARS_U, PN_LOCAL, PN_PREFIX, PNAME_LN, PNAME_NS, PREFIX, QMARK, QUOTE_3D, QUOTE_3S, RBRACE, RBRACKET, RPAREN, RPATH, RSLASH, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, STAR, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, TILDE, tokenImage, TRUE, UNKNOWN, VAR, VARNAME, VBAR, WS
Constructor and Description |
---|
TurtleParser(InputStream stream)
Constructor with InputStream.
|
TurtleParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
TurtleParser(Reader stream)
Constructor.
|
TurtleParser(TurtleParserTokenManager tm)
Constructor with generated Token Manager.
|
getPrefixMapping, setBaseURI, setEventHandler, unescapeStr
public TurtleParserTokenManager token_source
public Token token
public Token jj_nt
public TurtleParser(InputStream stream)
public TurtleParser(InputStream stream, String encoding)
public TurtleParser(Reader stream)
public TurtleParser(TurtleParserTokenManager tm)
public final void parse() throws ParseException
ParseException
public final void Statement() throws ParseException
ParseException
public final void Directive() throws ParseException
ParseException
public final void TriplesSameSubject() throws ParseException
ParseException
public final void PropertyList(Node s) throws ParseException
ParseException
public final void PropertyListNotEmpty(Node s) throws ParseException
ParseException
public final void ObjectList(Node s, Node p) throws ParseException
ParseException
public final void Object(Node s, Node p) throws ParseException
ParseException
public final Node Verb() throws ParseException
ParseException
public final Node TriplesNode() throws ParseException
ParseException
public final Node BlankNodePropertyList() throws ParseException
ParseException
public final Node Collection() throws ParseException
ParseException
public final Node GraphNode() throws ParseException
ParseException
public final Node VarOrTerm() throws ParseException
ParseException
public final Node Formula() throws ParseException
ParseException
public final Node Var() throws ParseException
ParseException
public final Node GraphTerm() throws ParseException
ParseException
public final Node NumericLiteral() throws ParseException
ParseException
public final Node RDFLiteral() throws ParseException
ParseException
public final String Langtag() throws ParseException
ParseException
public final Token AnyDirective() throws ParseException
ParseException
public final Node BooleanLiteral() throws ParseException
ParseException
public final String String() throws ParseException
ParseException
public final String IRIref() throws ParseException
ParseException
public final String PrefixedName() throws ParseException
ParseException
public final Node BlankNode() throws ParseException
ParseException
public final String IRI_REF() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(TurtleParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Licenced under the Apache License, Version 2.0