Package jmri.jmris.srcp.parser
Class SimpleNode
- java.lang.Object
-
- jmri.jmris.srcp.parser.SimpleNode
-
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
ASTaddress
,ASTbus
,ASTcheck
,ASTcommand
,ASTconnectionlitteral
,ASTconnectionmode
,ASTcv
,ASTcvbit
,ASTcvno
,ASTdelay
,ASTdescription
,ASTdevicegroup
,ASTdrivemode
,ASTfb
,ASTfunctionmode
,ASTga
,ASTget
,ASTgl
,ASTgo
,ASThandshake_set
,ASThandshakecommand
,ASTinit
,ASTlock
,ASTnonzeroaddress
,ASTonoff
,ASTport
,ASTpower
,ASTprogmode
,ASTprotocol
,ASTprotocollitteral
,ASTreg
,ASTreset
,ASTserver
,ASTserviceversion
,ASTsession
,ASTset
,ASTsm
,ASTterm
,ASTtime
,ASTtimeout
,ASTvalue
,ASTverify
,ASTwait_cmd
,ASTzeroaddress
,ASTzeroone
public class SimpleNode extends java.lang.Object implements Node
-
-
Constructor Summary
Constructors Constructor Description SimpleNode(int i)
SimpleNode(SRCPParser p, int i)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
childrenAccept(SRCPParserVisitor visitor, java.lang.Object data)
void
dump(java.lang.String prefix)
int
getId()
java.lang.Object
jjtAccept(SRCPParserVisitor visitor, java.lang.Object data)
void
jjtAddChild(Node n, int i)
void
jjtClose()
Node
jjtGetChild(int i)
int
jjtGetNumChildren()
Node
jjtGetParent()
java.lang.Object
jjtGetValue()
void
jjtOpen()
void
jjtSetParent(Node n)
void
jjtSetValue(java.lang.Object value)
java.lang.String
toString()
java.lang.String
toString(java.lang.String prefix)
-
-
-
Constructor Detail
-
SimpleNode
public SimpleNode(int i)
-
SimpleNode
public SimpleNode(SRCPParser p, int i)
-
-
Method Detail
-
jjtSetParent
public void jjtSetParent(Node n)
- Specified by:
jjtSetParent
in interfaceNode
-
jjtGetParent
public Node jjtGetParent()
- Specified by:
jjtGetParent
in interfaceNode
-
jjtAddChild
public void jjtAddChild(Node n, int i)
- Specified by:
jjtAddChild
in interfaceNode
-
jjtGetChild
public Node jjtGetChild(int i)
- Specified by:
jjtGetChild
in interfaceNode
-
jjtGetNumChildren
public int jjtGetNumChildren()
- Specified by:
jjtGetNumChildren
in interfaceNode
-
jjtSetValue
public void jjtSetValue(java.lang.Object value)
-
jjtGetValue
public java.lang.Object jjtGetValue()
-
jjtAccept
public java.lang.Object jjtAccept(SRCPParserVisitor visitor, java.lang.Object data)
-
childrenAccept
public java.lang.Object childrenAccept(SRCPParserVisitor visitor, java.lang.Object data)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String prefix)
-
dump
public void dump(java.lang.String prefix)
-
-