jmri.jmrix.srcp.parser
Class SRCPClientParser

Show UML class diagram
java.lang.Object
  extended by jmri.jmrix.srcp.parser.SRCPClientParser
All Implemented Interfaces:
SRCPClientParserConstants, SRCPClientParserTreeConstants

public class SRCPClientParser
extends Object
implements SRCPClientParserTreeConstants, SRCPClientParserConstants


Nested Class Summary
(package private) static class SRCPClientParser.JJCalls
           
 
Field Summary
(package private)  SimpleCharStream jj_input_stream
           
 Token jj_nt
          Next token.
protected  JJTSRCPClientParserState jjtree
           
(package private) static org.slf4j.Logger log
           
 Token token
          Current token.
 SRCPClientParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface jmri.jmrix.srcp.parser.SRCPClientParserTreeConstants
JJTADDRESS, JJTBUS, JJTCHECK, JJTCOMMAND, JJTCOMMANDRESPONSE, JJTCOMMENT, JJTCONNECTIONMODE, JJTCV, JJTCVBIT, JJTCVNO, JJTDELAY, JJTDESCRIPTION, JJTDEVICEGROUP, JJTFB, JJTGA, JJTGET, JJTGL, JJTGO, JJTHANDSHAKERESPONSE, JJTINFORESPONSE, JJTINIT, JJTLOCK, jjtNodeName, JJTNONZEROADDRESS, JJTONOFF, JJTPORT, JJTPOWER, JJTPROGMODE, JJTREG, JJTRESET, JJTSERVER, JJTSERVICEVERSION, JJTSESSION, JJTSET, JJTSM, JJTTERM, JJTTIME, JJTTIMEOUT, JJTVERIFY, JJTWAIT_CMD, JJTZEROADDRESS, JJTZEROONE
 
Fields inherited from interface jmri.jmrix.srcp.parser.SRCPClientParserConstants
A, B, C, CHECK, COMMAND, CONNECTIONMODELITTERAL, CV, CVBIT, D, DEFAULT, DELAY, DESCRIPTION, DRIVEMODE, E, EOF, EOL, ERROR, ERRORCODE, F, FB, G, GA, GET, GL, GM, GO, H, HOUR, I, IN_REASON, INFO, INIT, JMRILIGHT, JMRISENSOR, JMRITURNOUT, JULDATE, K, L, LOCK, M, MINSEC, N, NEWLINE, NONZEROADDR, O, OFF, OK, ON, ONOFF, P, POWER, PROTOCOL, PROTOCOLLITTERAL, R, REASON, REG, RESET, RETURN, S, SERVER, SESSION, SET, SM, SPACE, SRCP, T, TERM, TIME, tokenImage, V, VERIFY, VERSION, W, WAIT, Y, Z, ZEROADDR
 
Constructor Summary
SRCPClientParser(InputStream stream)
          Constructor with InputStream.
SRCPClientParser(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
SRCPClientParser(Reader stream)
          Constructor.
SRCPClientParser(SRCPClientParserTokenManager tm)
          Constructor with generated Token Manager.
 
Method Summary
 SimpleNode address()
           
 SimpleNode bus()
           
 SimpleNode check()
           
 SimpleNode command()
           
 SimpleNode commandresponse()
           
 SimpleNode comment()
           
 SimpleNode connectionmode()
           
 SimpleNode cv()
           
 SimpleNode cvbit()
           
 SimpleNode cvno()
           
 SimpleNode delay()
           
 SimpleNode description()
           
 SimpleNode devicegroup()
           
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 SimpleNode fb()
           
 SimpleNode ga()
           
 ParseException generateParseException()
          Generate ParseException.
 SimpleNode get()
           
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 SimpleNode gl()
           
 SimpleNode go()
           
 SimpleNode handshakeresponse()
           
 SimpleNode inforesponse()
           
 SimpleNode init()
           
 SimpleNode lock()
           
 SimpleNode nonzeroaddress()
           
 SimpleNode onoff()
           
 SimpleNode port()
           
 SimpleNode power()
           
 SimpleNode progmode()
           
 SimpleNode reg()
           
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 void ReInit(SRCPClientParserTokenManager tm)
          Reinitialise.
 SimpleNode reset()
           
 SimpleNode server()
           
 SimpleNode serviceversion()
           
 SimpleNode session()
           
 SimpleNode set()
           
 SimpleNode sm()
           
 SimpleNode term()
           
 SimpleNode time()
           
 SimpleNode timeout()
           
 SimpleNode verify()
           
 SimpleNode wait_cmd()
           
 SimpleNode zeroaddress()
           
 SimpleNode zeroone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTSRCPClientParserState jjtree

log

static org.slf4j.Logger log

token_source

public SRCPClientParserTokenManager token_source
Generated Token Manager.


jj_input_stream

SimpleCharStream jj_input_stream

token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

SRCPClientParser

public SRCPClientParser(InputStream stream)
Constructor with InputStream.


SRCPClientParser

public SRCPClientParser(InputStream stream,
                        String encoding)
Constructor with InputStream and supplied encoding


SRCPClientParser

public SRCPClientParser(Reader stream)
Constructor.


SRCPClientParser

public SRCPClientParser(SRCPClientParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

command

public final SimpleNode command()
                         throws ParseException
Throws:
ParseException

handshakeresponse

public final SimpleNode handshakeresponse()
                                   throws ParseException
Throws:
ParseException

serviceversion

public final SimpleNode serviceversion()
                                throws ParseException
Throws:
ParseException

connectionmode

public final SimpleNode connectionmode()
                                throws ParseException
Throws:
ParseException

inforesponse

public final SimpleNode inforesponse()
                              throws ParseException
Throws:
ParseException

commandresponse

public final SimpleNode commandresponse()
                                 throws ParseException
Throws:
ParseException

cvno

public final SimpleNode cvno()
                      throws ParseException
Throws:
ParseException

bus

public final SimpleNode bus()
                     throws ParseException
Throws:
ParseException

address

public final SimpleNode 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

go

public final SimpleNode go()
                    throws ParseException
Throws:
ParseException

get

public final SimpleNode get()
                     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

comment

public final SimpleNode comment()
                         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

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(SRCPClientParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Copyright © 1997-2013 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads