|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mulgara.jena.n3.turtle.ParserBase
org.mulgara.jena.n3.turtle.parser.TurtleParser
public class TurtleParser
| Field Summary | |
|---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
TurtleParserTokenManager |
token_source
Generated Token Manager. |
| Fields inherited from class org.mulgara.jena.n3.turtle.ParserBase |
|---|
nLogImplies, nOwlSameAs, nRDFfirst, nRDFnil, nRDFobject, nRDFpredicate, nRDFrest, nRDFsubject, nRDFtype, skolomizedBNodes, strictTurtle, SWAP_LOG_NS, SWAP_NS, XSD_FALSE, XSD_TRUE |
| Fields inherited from interface org.mulgara.jena.n3.turtle.parser.TurtleParserConstants |
|---|
A2Z, A2ZN, ANON, ARROW, AT, BASE, BLANK_NODE_LABEL, 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 | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
Token |
AnyDirective()
|
Node |
BlankNode()
|
Node |
BlankNodePropertyList()
|
Node |
BooleanLiteral()
|
Node |
Collection()
|
void |
Directive()
|
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
Node |
Formula()
|
ParseException |
generateParseException()
Generate ParseException. |
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
Node |
GraphNode()
|
Node |
GraphTerm()
|
String |
IRI_REF()
|
String |
IRIref()
|
String |
Langtag()
|
Node |
NumericLiteral()
|
void |
Object(Node s,
Node p)
|
void |
ObjectList(Node s,
Node p)
|
void |
parse()
|
String |
PrefixedName()
|
void |
PropertyList(Node s)
|
void |
PropertyListNotEmpty(Node s)
|
Node |
RDFLiteral()
|
void |
ReInit(InputStream stream)
Reinitialise. |
void |
ReInit(InputStream stream,
String encoding)
Reinitialise. |
void |
ReInit(Reader stream)
Reinitialise. |
void |
ReInit(TurtleParserTokenManager tm)
Reinitialise. |
void |
Statement()
|
String |
String()
|
Node |
TriplesNode()
|
void |
TriplesSameSubject()
|
Node |
Var()
|
Node |
VarOrTerm()
|
Node |
Verb()
|
| Methods inherited from class org.mulgara.jena.n3.turtle.ParserBase |
|---|
createBNode, createBNode, createListNode, createLiteral, createLiteral, createLiteral, createLiteralDecimal, createLiteralDouble, createLiteralInteger, createNode, createVariable, doubleValue, emitTriple, endFormula, exMsg, fixupPrefix, getBaseURI, getPrefixMapping, integerValue, isBNodeIRI, makePositiveInteger, resolveIRI, resolvePName, resolveQuotedIRI, setBase, setBaseURI, setEventHandler, setPrefix, startFormula, stripChars, stripQuotes, stripQuotes3, throwParseException, unescapeStr, unescapeStr |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public TurtleParserTokenManager token_source
public Token token
public Token jj_nt
| Constructor Detail |
|---|
public TurtleParser(InputStream stream)
public TurtleParser(InputStream stream,
String encoding)
public TurtleParser(Reader stream)
public TurtleParser(TurtleParserTokenManager tm)
| Method Detail |
|---|
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
ParseExceptionpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||