Package jmri.jmris.simpleserver.parser
Class JmriServerParser
- java.lang.Object
-
- jmri.jmris.simpleserver.parser.JmriServerParser
-
- All Implemented Interfaces:
JmriServerParserConstants
,JmriServerParserTreeConstants
public class JmriServerParser extends java.lang.Object implements JmriServerParserTreeConstants, JmriServerParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SimpleCharStream
jj_input_stream
Token
jj_nt
protected JJTJmriServerParserState
jjtree
Token
token
JmriServerParserTokenManager
token_source
-
Fields inherited from interface jmri.jmris.simpleserver.parser.JmriServerParserConstants
A, ADDR, B, C, CLOSED, COMMA, CONTINUE, D, DEFAULT, DELAY, DEVICENAME, E, EOF, EOL, EQUALS, F, G, H, HOUR, I, J, JMRILIGHT, JMRIREPORTER, JMRISENSOR, JMRITURNOUT, JULDATE, K, L, LIGHT, LOCATIONS, M, MINSEC, N, O, OFF, ON, ONOFF, OPERATIONS, P, POWER, Q, R, REPORTER, RETURN, S, SENSOR, SPACE, T, TAB, TERMINATE, THROTTLE, THROWN, THROWNCLOSED, tokenImage, TRAIN, TRAINCABOOSE, TRAINCARS, TRAINLEADLOCO, TRAINLENGTH, TRAINLOCATION, TRAINS, TRAINSTATUS, TRAINWEIGHT, TURNOUT, U, V, VALUE, W, X, Y, Z
-
Fields inherited from interface jmri.jmris.simpleserver.parser.JmriServerParserTreeConstants
JJTATTRIBUTELIST, JJTATTRIBUTENAME, JJTCOMMAND, JJTLIGHT, JJTLIGHTCMD, JJTLIGHTDEVICE, JJTLOCATIONS, jjtNodeName, JJTONOFF, JJTOPERATIONS, JJTOPERATIONSCMD, JJTPOWER, JJTPOWERCMD, JJTREPORTER, JJTREPORTERCMD, JJTREPORTERDEVICE, JJTSENSOR, JJTSENSORCMD, JJTSENSORDEVICE, JJTTERMINATE, JJTTHROWNCLOSED, JJTTRAINCMD, JJTTRAINS, JJTTURNOUT, JJTTURNOUTCMD, JJTTURNOUTDEVICE, JJTVALUE
-
-
Constructor Summary
Constructors Constructor Description JmriServerParser(java.io.InputStream stream)
JmriServerParser(java.io.InputStream stream, java.lang.String encoding)
JmriServerParser(java.io.Reader stream)
JmriServerParser(JmriServerParserTokenManager tm)
-
Method Summary
-
-
-
Field Detail
-
jjtree
protected JJTJmriServerParserState jjtree
-
token_source
public JmriServerParserTokenManager token_source
-
jj_input_stream
SimpleCharStream jj_input_stream
-
-
Constructor Detail
-
JmriServerParser
public JmriServerParser(java.io.InputStream stream)
-
JmriServerParser
public JmriServerParser(java.io.InputStream stream, java.lang.String encoding)
-
JmriServerParser
public JmriServerParser(java.io.Reader stream)
-
JmriServerParser
public JmriServerParser(JmriServerParserTokenManager tm)
-
-
Method Detail
-
command
public final SimpleNode command() throws ParseException
- Throws:
ParseException
-
powercmd
public final SimpleNode powercmd() throws ParseException
- Throws:
ParseException
-
power
public final SimpleNode power() throws ParseException
- Throws:
ParseException
-
onoff
public final SimpleNode onoff() throws ParseException
- Throws:
ParseException
-
turnoutcmd
public final SimpleNode turnoutcmd() throws ParseException
- Throws:
ParseException
-
turnout
public final SimpleNode turnout() throws ParseException
- Throws:
ParseException
-
turnoutdevice
public final SimpleNode turnoutdevice() throws ParseException
- Throws:
ParseException
-
thrownclosed
public final SimpleNode thrownclosed() throws ParseException
- Throws:
ParseException
-
lightcmd
public final SimpleNode lightcmd() throws ParseException
- Throws:
ParseException
-
light
public final SimpleNode light() throws ParseException
- Throws:
ParseException
-
lightdevice
public final SimpleNode lightdevice() throws ParseException
- Throws:
ParseException
-
reportercmd
public final SimpleNode reportercmd() throws ParseException
- Throws:
ParseException
-
reporter
public final SimpleNode reporter() throws ParseException
- Throws:
ParseException
-
reporterdevice
public final SimpleNode reporterdevice() throws ParseException
- Throws:
ParseException
-
sensorcmd
public final SimpleNode sensorcmd() throws ParseException
- Throws:
ParseException
-
sensor
public final SimpleNode sensor() throws ParseException
- Throws:
ParseException
-
sensordevice
public final SimpleNode sensordevice() throws ParseException
- Throws:
ParseException
-
operationscmd
public final SimpleNode operationscmd() throws ParseException
- Throws:
ParseException
-
operations
public final SimpleNode operations() throws ParseException
- Throws:
ParseException
-
trains
public final SimpleNode trains() throws ParseException
- Throws:
ParseException
-
locations
public final SimpleNode locations() throws ParseException
- Throws:
ParseException
-
terminate
public final SimpleNode terminate() throws ParseException
- Throws:
ParseException
-
traincmd
public final SimpleNode traincmd() throws ParseException
- Throws:
ParseException
-
attributelist
public final SimpleNode attributelist() throws ParseException
- Throws:
ParseException
-
attributename
public final SimpleNode attributename() throws ParseException
- Throws:
ParseException
-
value
public final SimpleNode value() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(java.io.InputStream stream)
-
ReInit
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
-
ReInit
public void ReInit(java.io.Reader stream)
-
ReInit
public void ReInit(JmriServerParserTokenManager tm)
-
getNextToken
public final Token getNextToken()
-
generateParseException
public ParseException generateParseException()
-
trace_enabled
public final boolean trace_enabled()
-
enable_tracing
public final void enable_tracing()
-
disable_tracing
public final void disable_tracing()
-
-