Class TurtleJavacc
- java.lang.Object
-
- org.apache.jena.riot.lang.extra.LangParserBase
-
- org.apache.jena.riot.lang.extra.javacc.TurtleJavacc
-
- All Implemented Interfaces:
TurtleJavaccConstants
public class TurtleJavacc extends LangParserBase implements TurtleJavaccConstants
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Next token.Token
token
Current token.TurtleJavaccTokenManager
token_source
Generated Token Manager.-
Fields inherited from interface org.apache.jena.riot.lang.extra.javacc.TurtleJavaccConstants
A2Z, A2ZN, ANON, AT, BASE, BASE_OLD, BLANK_NODE_LABEL, BOM, COMMA, DATATYPE, DECIMAL, DEFAULT, DIGITS, DOT, DOUBLE, ECHAR, EOF, EXPONENT, FALSE, GT2, HEX, INTEGER, IRIref, KW_A, L_ANN, LANGTAG, LBRACE, LBRACKET, LPAREN, LT2, MINUS, PERCENT, PLUS, PLX, PN_CHARS, PN_CHARS_BASE, PN_CHARS_U, PN_LOCAL, PN_LOCAL_ESC, PN_PREFIX, PNAME_LN, PNAME_NS, PREFIX, PREFIX_OLD, QUOTE_3D, QUOTE_3S, R_ANN, RBRACE, RBRACKET, RPAREN, SEMICOLON, SINGLE_LINE_COMMENT, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, SURROGATE_PAIR, tokenImage, TRUE, UCHAR, UCHAR4, UCHAR8, UNKNOWN, VARNAME, WS, WSC
-
-
Constructor Summary
Constructors Constructor Description TurtleJavacc(java.io.InputStream stream)
Constructor with InputStream.TurtleJavacc(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encodingTurtleJavacc(java.io.Reader stream)
Constructor.TurtleJavacc(TurtleJavaccTokenManager tm)
Constructor with generated Token Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Annotation(Node s, Node p, Node o)
Token
AnyDirective()
Node
BlankNode()
Node
BlankNodePropertyList()
Node
BooleanLiteral()
void
ByteOrderMark()
Node
Collection()
Node
CollectionElt()
void
Directive()
void
DirectiveOld()
void
disable_tracing()
Disable tracing.Node
EmbObject()
Node
EmbSubject()
Node
EmbTriple()
void
enable_tracing()
Enable tracing.ParseException
generateParseException()
Generate ParseException.Token
getNextToken()
Get the next Token.Token
getToken(int index)
Get the specific Token.java.lang.String
iri()
java.lang.String
IRIREF()
java.lang.String
LangTag()
Node
Literal()
Node
NumericLiteral()
Node
Object()
void
ObjectList(Node s, Node p)
void
parse()
Node
Predicate()
void
PredicateObjectList(Node s)
java.lang.String
PrefixedName()
Node
RDFLiteral()
void
ReInit(java.io.InputStream stream)
Reinitialise.void
ReInit(java.io.InputStream stream, java.lang.String encoding)
Reinitialise.void
ReInit(java.io.Reader stream)
Reinitialise.void
ReInit(TurtleJavaccTokenManager tm)
Reinitialise.void
Statement()
java.lang.String
String()
Node
Subject()
void
TriplesSameSubject()
Node
Verb()
-
Methods inherited from class org.apache.jena.riot.lang.extra.LangParserBase
setDest, setProfile
-
-
-
-
Field Detail
-
token_source
public TurtleJavaccTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
TurtleJavacc
public TurtleJavacc(java.io.InputStream stream)
Constructor with InputStream.
-
TurtleJavacc
public TurtleJavacc(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encoding
-
TurtleJavacc
public TurtleJavacc(java.io.Reader stream)
Constructor.
-
TurtleJavacc
public TurtleJavacc(TurtleJavaccTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
parse
public final void parse() throws ParseException
- Throws:
ParseException
-
ByteOrderMark
public final void ByteOrderMark() throws ParseException
- Throws:
ParseException
-
Statement
public final void Statement() throws ParseException
- Throws:
ParseException
-
Directive
public final void Directive() throws ParseException
- Throws:
ParseException
-
DirectiveOld
public final void DirectiveOld() throws ParseException
- Throws:
ParseException
-
TriplesSameSubject
public final void TriplesSameSubject() throws ParseException
- Throws:
ParseException
-
PredicateObjectList
public final void PredicateObjectList(Node s) throws ParseException
- Throws:
ParseException
-
ObjectList
public final void ObjectList(Node s, Node p) throws ParseException
- Throws:
ParseException
-
Annotation
public final void Annotation(Node s, Node p, Node o) throws ParseException
- Throws:
ParseException
-
Verb
public final Node Verb() throws ParseException
- Throws:
ParseException
-
Subject
public final Node Subject() throws ParseException
- Throws:
ParseException
-
Predicate
public final Node Predicate() throws ParseException
- Throws:
ParseException
-
Object
public final Node Object() throws ParseException
- Throws:
ParseException
-
EmbSubject
public final Node EmbSubject() throws ParseException
- Throws:
ParseException
-
EmbObject
public final Node EmbObject() throws ParseException
- Throws:
ParseException
-
EmbTriple
public final Node EmbTriple() throws ParseException
- Throws:
ParseException
-
Literal
public final Node Literal() throws ParseException
- Throws:
ParseException
-
BlankNodePropertyList
public final Node BlankNodePropertyList() throws ParseException
- Throws:
ParseException
-
Collection
public final Node Collection() throws ParseException
- Throws:
ParseException
-
CollectionElt
public final Node CollectionElt() throws ParseException
- Throws:
ParseException
-
NumericLiteral
public final Node NumericLiteral() throws ParseException
- Throws:
ParseException
-
RDFLiteral
public final Node RDFLiteral() throws ParseException
- Throws:
ParseException
-
LangTag
public final java.lang.String LangTag() throws ParseException
- Throws:
ParseException
-
AnyDirective
public final Token AnyDirective() throws ParseException
- Throws:
ParseException
-
BooleanLiteral
public final Node BooleanLiteral() throws ParseException
- Throws:
ParseException
-
String
public final java.lang.String String() throws ParseException
- Throws:
ParseException
-
iri
public final java.lang.String iri() throws ParseException
- Throws:
ParseException
-
PrefixedName
public final java.lang.String PrefixedName() throws ParseException
- Throws:
ParseException
-
BlankNode
public final Node BlankNode() throws ParseException
- Throws:
ParseException
-
IRIREF
public final java.lang.String IRIREF() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(java.io.InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
Reinitialise.
-
ReInit
public void ReInit(java.io.Reader stream)
Reinitialise.
-
ReInit
public void ReInit(TurtleJavaccTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-