Package jmri.jmrix.srcp.parser
Class SRCPClientParser
- java.lang.Object
-
- jmri.jmrix.srcp.parser.SRCPClientParser
-
- All Implemented Interfaces:
SRCPClientParserConstants
,SRCPClientParserTreeConstants
public class SRCPClientParser extends java.lang.Object implements SRCPClientParserTreeConstants, SRCPClientParserConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SRCPClientParser.JJCalls
-
Field Summary
Fields Modifier and Type Field Description (package private) SimpleCharStream
jj_input_stream
Token
jj_nt
protected JJTSRCPClientParserState
jjtree
Token
token
SRCPClientParserTokenManager
token_source
-
Fields inherited from interface jmri.jmrix.srcp.parser.SRCPClientParserConstants
A, B, C, COMMAND, CV, CVBIT, D, DEFAULT, DELAY, DESCRIPTION, DRIVEMODE, E, ENDVALUE, EOF, EOL, ERROR, F, FB, G, GA, GL, GM, H, HOUR, I, IN_REASON, IN_VALUE, INFO, J, K, KEY, L, LOCK, M, MINSEC, N, NONZEROADDR, O, OFF, OK, ON, ONOFF, P, POWER, PROTOCOL, Q, R, REASON, REG, RETURN, S, SERVER, SESSION, SM, SPACE, T, TIME, TIMESTAMP, tokenImage, U, V, VALUE, W, X, Y, Z, ZEROADDR
-
Fields inherited from interface jmri.jmrix.srcp.parser.SRCPClientParserTreeConstants
JJTBUS, JJTCOMMANDRESPONSE, JJTDESCRIPTION, JJTDEVICEGROUP, JJTERROR, JJTFB, JJTGA, JJTGL, JJTHANDSHAKERESPONSE, JJTINFO, JJTINFORESPONSE, JJTLOCK, jjtNodeName, JJTNONZEROADDRESS, JJTOK, JJTONOFF, JJTPORT, JJTPOWER, JJTSERVER, JJTSERVICEVERSION, JJTSESSION, JJTSM, JJTTIME, JJTTIMESTAMP, JJTVOID, JJTZEROADDRESS
-
-
Constructor Summary
Constructors Constructor Description SRCPClientParser(java.io.InputStream stream)
SRCPClientParser(java.io.InputStream stream, java.lang.String encoding)
SRCPClientParser(java.io.Reader stream)
SRCPClientParser(SRCPClientParserTokenManager tm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
address()
SimpleNode
bus()
SimpleNode
commandresponse()
SimpleNode
description()
SimpleNode
devicegroup()
void
disable_tracing()
void
enable_tracing()
SimpleNode
error()
SimpleNode
fb()
SimpleNode
ga()
ParseException
generateParseException()
Token
getNextToken()
Token
getToken(int index)
SimpleNode
gl()
SimpleNode
handshakeresponse()
SimpleNode
info()
SimpleNode
inforesponse()
SimpleNode
lock()
SimpleNode
nonzeroaddress()
SimpleNode
ok()
SimpleNode
onoff()
SimpleNode
port()
SimpleNode
power()
void
ReInit(java.io.InputStream stream)
void
ReInit(java.io.InputStream stream, java.lang.String encoding)
void
ReInit(java.io.Reader stream)
void
ReInit(SRCPClientParserTokenManager tm)
SimpleNode
server()
SimpleNode
serviceversion()
SimpleNode
session()
SimpleNode
sm()
SimpleNode
time()
SimpleNode
timestamp()
boolean
trace_enabled()
SimpleNode
zeroaddress()
void
zeroone()
-
-
-
Field Detail
-
jjtree
protected JJTSRCPClientParserState jjtree
-
token_source
public SRCPClientParserTokenManager token_source
-
jj_input_stream
SimpleCharStream jj_input_stream
-
-
Constructor Detail
-
SRCPClientParser
public SRCPClientParser(java.io.InputStream stream)
-
SRCPClientParser
public SRCPClientParser(java.io.InputStream stream, java.lang.String encoding)
-
SRCPClientParser
public SRCPClientParser(java.io.Reader stream)
-
SRCPClientParser
public SRCPClientParser(SRCPClientParserTokenManager tm)
-
-
Method Detail
-
handshakeresponse
public final SimpleNode handshakeresponse() throws ParseException
- Throws:
ParseException
-
timestamp
public final SimpleNode timestamp() throws ParseException
- Throws:
ParseException
-
serviceversion
public final SimpleNode serviceversion() throws ParseException
- Throws:
ParseException
-
inforesponse
public final SimpleNode inforesponse() throws ParseException
- Throws:
ParseException
-
info
public final SimpleNode info() throws ParseException
- Throws:
ParseException
-
error
public final SimpleNode error() throws ParseException
- Throws:
ParseException
-
ok
public final SimpleNode ok() throws ParseException
- Throws:
ParseException
-
commandresponse
public final SimpleNode commandresponse() throws ParseException
- Throws:
ParseException
-
bus
public final SimpleNode bus() throws ParseException
- Throws:
ParseException
-
power
public final SimpleNode power() throws ParseException
- Throws:
ParseException
-
address
public final void address() 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
-
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
-
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 void zeroone() 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(SRCPClientParserTokenManager 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()
-
-