Package jmri.jmrix.srcp.parser
Class SimpleNode
- java.lang.Object
-
- jmri.jmrix.srcp.parser.SimpleNode
-
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
ASTbus
,ASTcommandresponse
,ASTdescription
,ASTdevicegroup
,ASTerror
,ASTfb
,ASTga
,ASTgl
,ASThandshakeresponse
,ASTinfo
,ASTinforesponse
,ASTlock
,ASTnonzeroaddress
,ASTok
,ASTonoff
,ASTport
,ASTpower
,ASTserver
,ASTserviceversion
,ASTsession
,ASTsm
,ASTtime
,ASTtimestamp
,ASTzeroaddress
public class SimpleNode extends java.lang.Object implements Node
-
-
Constructor Summary
Constructors Constructor Description SimpleNode(int i)
SimpleNode(SRCPClientParser p, int i)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
childrenAccept(SRCPClientParserVisitor visitor, java.lang.Object data)
void
dump(java.lang.String prefix)
int
getId()
java.lang.Object
jjtAccept(SRCPClientParserVisitor visitor, java.lang.Object data)
void
jjtAddChild(Node n, int i)
void
jjtClose()
Node
jjtGetChild(int i)
Token
jjtGetFirstToken()
Token
jjtGetLastToken()
int
jjtGetNumChildren()
Node
jjtGetParent()
java.lang.Object
jjtGetValue()
void
jjtOpen()
void
jjtSetFirstToken(Token token)
void
jjtSetLastToken(Token token)
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(SRCPClientParser 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()
-
jjtGetFirstToken
public Token jjtGetFirstToken()
-
jjtSetFirstToken
public void jjtSetFirstToken(Token token)
-
jjtGetLastToken
public Token jjtGetLastToken()
-
jjtSetLastToken
public void jjtSetLastToken(Token token)
-
jjtAccept
public java.lang.Object jjtAccept(SRCPClientParserVisitor visitor, java.lang.Object data)
-
childrenAccept
public java.lang.Object childrenAccept(SRCPClientParserVisitor 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)
-
-