jmri.jmris.srcp.parser
Class SRCPParser

Show UML class diagram
java.lang.Object
  extended by jmri.jmris.srcp.parser.SRCPParser
All Implemented Interfaces:
SRCPParserConstants, SRCPParserTreeConstants

public class SRCPParser
extends Object
implements SRCPParserTreeConstants, SRCPParserConstants


Nested Class Summary
(package private) static class SRCPParser.JJCalls
           
 
Field Summary
(package private)  SimpleCharStream jj_input_stream
           
 Token jj_nt
          Next token.
protected  JJTSRCPParserState jjtree
           
(package private) static org.slf4j.Logger log
           
 Token token
          Current token.
 SRCPParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface jmri.jmris.srcp.parser.SRCPParserTreeConstants
JJTADDRESS, JJTBUS, JJTCHECK, JJTCOMMAND, JJTCOMMENT, 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
 
Fields inherited from interface jmri.jmris.srcp.parser.SRCPParserConstants
A, B, BADTOKEN, 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
 
Constructor Summary
SRCPParser(InputStream stream)
          Constructor with InputStream.
SRCPParser(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
SRCPParser(Reader stream)
          Constructor.
SRCPParser(SRCPParserTokenManager tm)
          Constructor with generated Token Manager.
 
Method Summary
 SimpleNode address()
           
 SimpleNode bus()
           
 SimpleNode check()
           
 SimpleNode command()
           
 SimpleNode comment()
           
 SimpleNode connectionlitteral()
           
 SimpleNode connectionmode()
           
 SimpleNode cv()
           
 SimpleNode cvbit()
           
 SimpleNode cvno()
           
 SimpleNode delay()
           
 SimpleNode description()
           
 SimpleNode devicegroup()
           
 void disable_tracing()
          Disable tracing.
 SimpleNode drivemode()
           
 void enable_tracing()
          Enable tracing.
 SimpleNode fb()
           
 SimpleNode functionmode()
           
 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 handshake_set()
           
 SimpleNode handshakecommand()
           
 SimpleNode init()
           
 SimpleNode lock()
           
 SimpleNode nonzeroaddress()
           
 SimpleNode onoff()
           
 SimpleNode port()
           
 SimpleNode power()
           
 SimpleNode progmode()
           
 SimpleNode protocol()
           
 SimpleNode protocollitteral()
           
 SimpleNode reg()
           
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 void ReInit(SRCPParserTokenManager tm)
          Reinitialise.
 SimpleNode reset()
           
 SimpleNode server()
           
 SimpleNode serviceversion()
           
 SimpleNode session()
           
 SimpleNode set()
           
 SimpleNode sm()
           
 SimpleNode term()
           
 SimpleNode time()
           
 SimpleNode timeout()
           
 SimpleNode value()
           
 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 JJTSRCPParserState jjtree

log

static org.slf4j.Logger log

token_source

public SRCPParserTokenManager 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

SRCPParser

public SRCPParser(InputStream stream)
Constructor with InputStream.


SRCPParser

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


SRCPParser

public SRCPParser(Reader stream)
Constructor.


SRCPParser

public SRCPParser(SRCPParserTokenManager tm)
Constructor with generated Token Manager.

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

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

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(InputStream stream)
Reinitialise.


ReInit

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


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(SRCPParserTokenManager 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-2014 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