Class StateParser
java.lang.Object
com.yahoo.documentapi.messagebus.systemstate.parser.StateParser
- All Implemented Interfaces:
StateParserConstants
-
Field Summary
Modifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface com.yahoo.documentapi.messagebus.systemstate.parser.StateParserConstants
ALPHANUM, AND, ARG, CODE, DEFAULT, DOT, DOTDOT, EOF, EQ, SLASH, SPACE, STRING, tokenImage, WHITESPACE
-
Constructor Summary
ConstructorDescriptionConstructor with generated Token Manager.StateParser
(InputStream stream, String encoding) Constructor with InputStream and supplied encodingStateParser
(Reader stream) Constructor with InputStream. -
Method Summary
Modifier and TypeMethodDescriptionfinal Argument
argument()
final void
Disable tracing.final void
Enable tracing.Generate ParseException.final Token
final Token
getToken
(int index) final Location
final String
void
Reinitialisevoid
ReInit
(InputStream stream, String encoding) Reinitialisevoid
Reinitialisefinal NodeState
final boolean
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
StateParser
Constructor with InputStream and supplied encoding- Parameters:
stream
- input streamencoding
- charset to be used. May not benull
.
-
StateParser
Constructor with InputStream.- Parameters:
stream
- char stream
-
StateParser
Constructor with generated Token Manager.- Parameters:
tm
- Token manager to use
-
-
Method Details
-
systemState
-
location
-
locationItem
-
argumentList
-
argument
-
ReInit
Reinitialise- Parameters:
stream
- input streamencoding
- charset to be used. May not benull
.
-
ReInit
Reinitialise- Parameters:
stream
- char stream
-
ReInit
Reinitialise- Parameters:
tm
- Token manager to use
-
getNextToken
- Returns:
- the next Token.
-
getToken
- Parameters:
index
- index to be retrieved- Returns:
- the specific Token.
-
generateParseException
Generate ParseException.- Returns:
- new Exception object. Never
null
-
trace_enabled
public final boolean trace_enabled()- Returns:
- Always
false
.
-
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-