Package jmri.jmris.srcp.parser
Class SRCPParser
- java.lang.Object
-
- jmri.jmris.srcp.parser.SRCPParser
-
- All Implemented Interfaces:
SRCPParserConstants
,SRCPParserTreeConstants
public class SRCPParser extends java.lang.Object implements SRCPParserTreeConstants, SRCPParserConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SRCPParser.JJCalls
-
Field Summary
Fields Modifier and Type Field Description (package private) SimpleCharStream
jj_input_stream
Token
jj_nt
protected JJTSRCPParserState
jjtree
Token
token
SRCPParserTokenManager
token_source
-
Fields inherited from interface jmri.jmris.srcp.parser.SRCPParserConstants
A, B, C, CHECK, COMMAND, CONNECTIONMODELITTERAL, CONTINUE, CV, CVBIT, D, DEFAULT, DELAY, DESCRIPTION, DRIVEMODE, E, EOF, EOL, F, FB, FUNCTIONMODE, G, GA, GET, GL, GM, GO, H, I, IN_TIME, INFO, INIT, J, JMRILIGHT, JMRISENSOR, JMRITURNOUT, K, L, LOCK, M, N, NMRA, NONZEROADDR, O, OFF, ON, ONOFF, P, POWER, PROTOCOL, PROTOCOLLITTERAL, Q, R, REG, RESET, RETURN, S, SERVER, SESSION, SET, SM, SPACE, SRCP, T, TAB, TERM, TIME, tokenImage, U, V, VERIFY, VERSION, W, WAIT, X, Y, Z, ZEROADDR
-
Fields inherited from interface jmri.jmris.srcp.parser.SRCPParserTreeConstants
JJTADDRESS, JJTBUS, JJTCHECK, JJTCOMMAND, JJTCONNECTIONLITTERAL, JJTCONNECTIONMODE, JJTCV, JJTCVBIT, JJTCVNO, JJTDELAY, JJTDESCRIPTION, JJTDEVICEGROUP, JJTDRIVEMODE, JJTFB, JJTFUNCTIONMODE, JJTGA, JJTGET, JJTGL, JJTGO, JJTHANDSHAKE_SET, JJTHANDSHAKECOMMAND, JJTINIT, JJTLOCK, jjtNodeName, JJTNONZEROADDRESS, JJTONOFF, JJTPORT, JJTPOWER, JJTPROGMODE, JJTPROTOCOL, JJTPROTOCOLLITTERAL, JJTREG, JJTRESET, JJTSERVER, JJTSERVICEVERSION, JJTSESSION, JJTSET, JJTSM, JJTTERM, JJTTIME, JJTTIMEOUT, JJTVALUE, JJTVERIFY, JJTWAIT_CMD, JJTZEROADDRESS, JJTZEROONE
-
-
Constructor Summary
Constructors Constructor Description SRCPParser(java.io.InputStream stream)
SRCPParser(java.io.InputStream stream, java.lang.String encoding)
SRCPParser(java.io.Reader stream)
SRCPParser(SRCPParserTokenManager tm)
-
Method Summary
-
-
-
Field Detail
-
jjtree
protected JJTSRCPParserState jjtree
-
token_source
public SRCPParserTokenManager token_source
-
jj_input_stream
SimpleCharStream jj_input_stream
-
-
Constructor Detail
-
SRCPParser
public SRCPParser(java.io.InputStream stream)
-
SRCPParser
public SRCPParser(java.io.InputStream stream, java.lang.String encoding)
-
SRCPParser
public SRCPParser(java.io.Reader stream)
-
SRCPParser
public SRCPParser(SRCPParserTokenManager tm)
-
-
Method Detail
-
handshakecommand
public final SimpleNode handshakecommand() throws ParseException
- Throws:
ParseException
-
command
public final SimpleNode command() throws ParseException
- Throws:
ParseException
-
serviceversion
public final SimpleNode serviceversion() throws ParseException
- Throws:
ParseException
-
connectionmode
public final SimpleNode connectionmode() throws ParseException
- Throws:
ParseException
-
bus
public final SimpleNode bus() throws ParseException
- Throws:
ParseException
-
address
public final SimpleNode address() throws ParseException
- Throws:
ParseException
-
value
public final SimpleNode value() throws ParseException
- Throws:
ParseException
-
cvno
public final SimpleNode cvno() throws ParseException
- Throws:
ParseException
-
zeroaddress
public final SimpleNode zeroaddress() throws ParseException
- Throws:
ParseException
-
nonzeroaddress
public final SimpleNode nonzeroaddress() throws ParseException
- Throws:
ParseException
-
port
public final SimpleNode port() throws ParseException
- Throws:
ParseException
-
devicegroup
public final SimpleNode devicegroup() throws ParseException
- Throws:
ParseException
-
go
public final SimpleNode go() throws ParseException
- Throws:
ParseException
-
get
public final SimpleNode get() throws ParseException
- Throws:
ParseException
-
handshake_set
public final SimpleNode handshake_set() throws ParseException
- Throws:
ParseException
-
protocollitteral
public final SimpleNode protocollitteral() throws ParseException
- Throws:
ParseException
-
connectionlitteral
public final SimpleNode connectionlitteral() throws ParseException
- Throws:
ParseException
-
set
public final SimpleNode set() throws ParseException
- Throws:
ParseException
-
term
public final SimpleNode term() throws ParseException
- Throws:
ParseException
-
check
public final SimpleNode check() throws ParseException
- Throws:
ParseException
-
wait_cmd
public final SimpleNode wait_cmd() throws ParseException
- Throws:
ParseException
-
init
public final SimpleNode init() throws ParseException
- Throws:
ParseException
-
reset
public final SimpleNode reset() throws ParseException
- Throws:
ParseException
-
verify
public final SimpleNode verify() throws ParseException
- Throws:
ParseException
-
gl
public final SimpleNode gl() throws ParseException
- Throws:
ParseException
-
sm
public final SimpleNode sm() throws ParseException
- Throws:
ParseException
-
ga
public final SimpleNode ga() throws ParseException
- Throws:
ParseException
-
fb
public final SimpleNode fb() throws ParseException
- Throws:
ParseException
-
time
public final SimpleNode time() throws ParseException
- Throws:
ParseException
-
power
public final SimpleNode power() throws ParseException
- Throws:
ParseException
-
server
public final SimpleNode server() throws ParseException
- Throws:
ParseException
-
session
public final SimpleNode session() throws ParseException
- Throws:
ParseException
-
lock
public final SimpleNode lock() throws ParseException
- Throws:
ParseException
-
description
public final SimpleNode description() throws ParseException
- Throws:
ParseException
-
onoff
public final SimpleNode onoff() throws ParseException
- Throws:
ParseException
-
zeroone
public final SimpleNode zeroone() throws ParseException
- Throws:
ParseException
-
delay
public final SimpleNode delay() throws ParseException
- Throws:
ParseException
-
timeout
public final SimpleNode timeout() throws ParseException
- Throws:
ParseException
-
progmode
public final SimpleNode progmode() throws ParseException
- Throws:
ParseException
-
cv
public final SimpleNode cv() throws ParseException
- Throws:
ParseException
-
cvbit
public final SimpleNode cvbit() throws ParseException
- Throws:
ParseException
-
reg
public final SimpleNode reg() throws ParseException
- Throws:
ParseException
-
protocol
public final SimpleNode protocol() throws ParseException
- Throws:
ParseException
-
drivemode
public final SimpleNode drivemode() throws ParseException
- Throws:
ParseException
-
functionmode
public final SimpleNode functionmode() 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(SRCPParserTokenManager 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()
-
-