Class TurtleParser
java.lang.Object
org.apache.jena.ttl.turtle.TurtleParserBase
org.apache.jena.ttl.turtle.parser.TurtleParser
- All Implemented Interfaces:
TurtleParserConstants
-
Field Summary
Modifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface org.apache.jena.ttl.turtle.parser.TurtleParserConstants
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 Summary
ConstructorDescriptionTurtleParser
(InputStream stream) Constructor with InputStream.TurtleParser
(InputStream stream, String encoding) Constructor with InputStream and supplied encodingTurtleParser
(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal Token
final Node
final Node
final Node
final Node
final void
final void
Disable tracing.final void
Enable tracing.final Node
Formula()
Generate ParseException.final Token
Get the next Token.final Token
getToken
(int index) Get the specific Token.final Node
final Node
final String
IRI_REF()
final String
IRIref()
final String
Langtag()
final Node
final void
final void
ObjectList
(Node s, Node p) final void
parse()
final String
final void
PropertyList
(Node s) final void
final Node
void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.void
Reinitialise.final void
final String
String()
final boolean
Trace enabled.final Node
final void
final Node
Var()
final Node
final Node
Verb()
Methods inherited from class org.apache.jena.ttl.turtle.TurtleParserBase
getPrefixMapping, setBaseURI, setEventHandler, unescapeStr
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
TurtleParser
Constructor with InputStream. -
TurtleParser
Constructor with InputStream and supplied encoding -
TurtleParser
Constructor. -
TurtleParser
Constructor with generated Token Manager.
-
-
Method Details
-
parse
- Throws:
ParseException
-
Statement
- Throws:
ParseException
-
Directive
- Throws:
ParseException
-
TriplesSameSubject
- Throws:
ParseException
-
PropertyList
- Throws:
ParseException
-
PropertyListNotEmpty
- Throws:
ParseException
-
ObjectList
- Throws:
ParseException
-
Object
- Throws:
ParseException
-
Verb
- Throws:
ParseException
-
TriplesNode
- Throws:
ParseException
-
BlankNodePropertyList
- Throws:
ParseException
-
Collection
- Throws:
ParseException
-
GraphNode
- Throws:
ParseException
-
VarOrTerm
- Throws:
ParseException
-
Formula
- Throws:
ParseException
-
Var
- Throws:
ParseException
-
GraphTerm
- Throws:
ParseException
-
NumericLiteral
- Throws:
ParseException
-
RDFLiteral
- Throws:
ParseException
-
Langtag
- Throws:
ParseException
-
AnyDirective
- Throws:
ParseException
-
BooleanLiteral
- Throws:
ParseException
-
String
- Throws:
ParseException
-
IRIref
- Throws:
ParseException
-
PrefixedName
- Throws:
ParseException
-
BlankNode
- Throws:
ParseException
-
IRI_REF
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
trace_enabled
public final boolean trace_enabled()Trace enabled. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-