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 classSRCPClientParser.JJCalls
-
Field Summary
Fields Modifier and Type Field Description (package private) SimpleCharStreamjj_input_streamTokenjj_ntprotected JJTSRCPClientParserStatejjtreeTokentokenSRCPClientParserTokenManagertoken_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 voidaddress()SimpleNodebus()SimpleNodecommandresponse()SimpleNodedescription()SimpleNodedevicegroup()voiddisable_tracing()voidenable_tracing()SimpleNodeerror()SimpleNodefb()SimpleNodega()ParseExceptiongenerateParseException()TokengetNextToken()TokengetToken(int index)SimpleNodegl()SimpleNodehandshakeresponse()SimpleNodeinfo()SimpleNodeinforesponse()SimpleNodelock()SimpleNodenonzeroaddress()SimpleNodeok()SimpleNodeonoff()SimpleNodeport()SimpleNodepower()voidReInit(java.io.InputStream stream)voidReInit(java.io.InputStream stream, java.lang.String encoding)voidReInit(java.io.Reader stream)voidReInit(SRCPClientParserTokenManager tm)SimpleNodeserver()SimpleNodeserviceversion()SimpleNodesession()SimpleNodesm()SimpleNodetime()SimpleNodetimestamp()booleantrace_enabled()SimpleNodezeroaddress()voidzeroone()
-
-
-
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()
-
-