Class TsonStreamParserImpl
java.lang.Object
net.thevpc.tson.impl.parser.javacc.TsonStreamParserImpl
- All Implemented Interfaces:
TsonStreamParserImplConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface TsonStreamParserImplConstants
ALIAS, ANTI_QUOTE_STR, AT, AT2, CHARSTREAM_END, CHARSTREAM_PART, CHARSTREAM_START, COLON, COMMA, DATE, DATETIME, DEFAULT, DIGIT, DOUBLE_QUOTE_STR, EOF, EXPONENT, FALSE, IN_CHARSTREAM, INSTANT, LBRACE, LBRACK, LETTER, LINE_STR, LPAREN, NAME, NULL, NUMBER, OP_AND, OP_AND2, OP_AND3, OP_COLON_EQ, OP_COLON_EQ2, OP_DIV, OP_DIV3, OP_EQ, OP_EQ_GT, OP_EQ2, OP_EQ2_GT, OP_EQ3, OP_GT, OP_GT2, OP_GT3, OP_GTE, OP_HASH, OP_HASH10, OP_HASH2, OP_HASH3, OP_HASH4, OP_HASH5, OP_HASH6, OP_HASH7, OP_HASH8, OP_HASH9, OP_HAT, OP_HAT2, OP_HAT3, OP_LT, OP_LT_EQ2, OP_LT_MINUS2, OP_LT2, OP_LT3, OP_LTE, OP_MINUS, OP_MINUS_GT, OP_MINUS2, OP_MINUS2_GT, OP_MINUS3, OP_MUL, OP_MUL2, OP_MUL3, OP_PIPE, OP_PIPE2, OP_PIPE3, OP_PLUS, OP_PLUS2, OP_PLUS3, OP_REM, OP_REM2, OP_REM3, OP_TILDE, OP_TILDE2, OP_TILDE3, RBRACE, RBRACK, REGEX, RPAREN, SEMICOLON, SEMICOLON2, SINGLE_QUOTE_STR, TIME, tokenImage, TRIPLE_ANTI_QUOTE_STR, TRIPLE_DOUBLE_QUOTE_STR, TRIPLE_SINGLE_QUOTE_STR, TRUE -
Constructor Summary
ConstructorsConstructorDescriptionTsonStreamParserImpl(InputStream stream) Constructor with InputStream.TsonStreamParserImpl(InputStream stream, String encoding) Constructor with InputStream and supplied encodingTsonStreamParserImpl(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidfinal voidarray(boolean named) final voidfinal voidfinal voidbin()final voidfinal voidDisable tracing.final voidfinal voidfinal voidEnable tracing.Generate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final voidnamed()final voidobject(boolean named) final voidfinal voidfinal Tokenop()final voidparam()final voidfinal voidfinal voidvoidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final voidvoidsource()voidfinal voidunnamed()final voidunnamed0()
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
TsonStreamParserImpl
Constructor with InputStream. -
TsonStreamParserImpl
Constructor with InputStream and supplied encoding -
TsonStreamParserImpl
Constructor. -
TsonStreamParserImpl
Constructor with generated Token Manager.
-
-
Method Details
-
source
-
source
-
setConfig
-
parseDocument
- Throws:
ParseException
-
parseElement
- Throws:
ParseException
-
elementLevel2
- Throws:
ParseException
-
op
- Throws:
ParseException
-
elementLevel1
- Throws:
ParseException
-
bin
- Throws:
ParseException
-
param
- Throws:
ParseException
-
objectElement
- Throws:
ParseException
-
arrayElement
- Throws:
ParseException
-
commaSeparator
- Throws:
ParseException
-
semiColonSeparator
- Throws:
ParseException
-
paramList
- Throws:
ParseException
-
objectElementList
- Throws:
ParseException
-
arrayElementList
- Throws:
ParseException
-
annotation
- Throws:
ParseException
-
unnamed
- Throws:
ParseException
-
named
- Throws:
ParseException
-
unnamed0
- Throws:
ParseException
-
object
- Throws:
ParseException
-
array
- Throws:
ParseException
-
annotationParam
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-