Module org.apache.jena.arq
Class JSON_Parser
java.lang.Object
org.apache.jena.atlas.json.io.parserjavacc.javacc.JSON_ParserBase
org.apache.jena.atlas.json.io.parserjavacc.javacc.JSON_Parser
- All Implemented Interfaces:
JSON_ParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface org.apache.jena.atlas.json.io.parserjavacc.javacc.JSON_ParserConstants
COLON, COMMA, DECIMAL, DEFAULT, DIGITS, DOUBLE, ECHAR, EOF, EXPONENT, FALSE, INTEGER, LBRACE, LBRACKET, LPAREN, MINUS, NEGATIVE_DECIMAL, NEGATIVE_DOUBLE, NEGATIVE_INTEGER, NULL, PLUS, POSITIVE_DECIMAL, POSITIVE_DOUBLE, POSITIVE_INTEGER, QUOTE_3D, QUOTE_3S, RBRACE, RBRACKET, RPAREN, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, tokenImage, TRUE, WS -
Constructor Summary
ConstructorsConstructorDescriptionJSON_Parser(InputStream stream) Constructor with InputStream.JSON_Parser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingJSON_Parser(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidany()final voidArray()final voidArrayValue(long line, long col) final voidDisable tracing.final voidfinal voidEnable tracing.final voidFalse()Generate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final voidfinal voidNull()final voidNumber()final voidObject()final voidvoidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final voidfinal voidString()final booleanTrace enabled.final voidTrue()final voidunit()final voidValue()Methods inherited from class org.apache.jena.atlas.json.io.parserjavacc.javacc.JSON_ParserBase
setHandler
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
JSON_Parser
Constructor with InputStream. -
JSON_Parser
Constructor with InputStream and supplied encoding -
JSON_Parser
Constructor. -
JSON_Parser
Constructor with generated Token Manager.
-
-
Method Details
-
unit
- Throws:
ParseException
-
any
- Throws:
ParseException
-
Value
- Throws:
ParseException
-
Object
- Throws:
ParseException
-
Members
- Throws:
ParseException
-
Pair
- Throws:
ParseException
-
Array
- Throws:
ParseException
-
Elements
- Throws:
ParseException
-
ArrayValue
- Throws:
ParseException
-
SimpleValue
- Throws:
ParseException
-
Number
- Throws:
ParseException
-
String
- Throws:
ParseException
-
True
- Throws:
ParseException
-
False
- Throws:
ParseException
-
Null
- 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.
-