Package org.javacc.jjtree
Class JJTreeNode
java.lang.Object
org.javacc.jjtree.SimpleNode
org.javacc.jjtree.JJTreeNode
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
ASTBNFAction
,ASTBNFAssignment
,ASTBNFChoice
,ASTBNFDeclaration
,ASTBNFLookahead
,ASTBNFNodeScope
,ASTBNFNonTerminal
,ASTBNFOneOrMore
,ASTBNFParenthesized
,ASTBNFSequence
,ASTBNFTryBlock
,ASTBNFZeroOrMore
,ASTBNFZeroOrOne
,ASTCharDescriptor
,ASTCompilationUnit
,ASTExpansionNodeScope
,ASTGrammar
,ASTJavacodeBody
,ASTLHS
,ASTNodeDescriptor
,ASTNodeDescriptorExpression
,ASTOptionBinding
,ASTOptions
,ASTPrimaryExpression
,ASTProduction
,ASTProductions
,ASTRE
,ASTRECharList
,ASTREChoice
,ASTREEOF
,ASTRENamed
,ASTREOneOrMore
,ASTREParenthesized
,ASTREReference
,ASTRESequence
,ASTRESpec
,ASTREStringLiteral
,ASTREZeroOrMore
,ASTREZeroOrOne
,ASTRRepetitionRange
,ASTTokenDecls
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
jjtAddChild
(Node n, int i) This method tells the node to add its argument to the node's list of children.static Node
jjtCreate
(int id) protected void
void
void
void
setOrdinal
(int o) Methods inherited from class org.javacc.jjtree.SimpleNode
childrenAccept, dump, getId, jjtAccept, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString
-
Constructor Details
-
JJTreeNode
public JJTreeNode(int id) -
JJTreeNode
-
-
Method Details
-
jjtCreate
-
jjtAddChild
Description copied from interface:Node
This method tells the node to add its argument to the node's list of children.- Specified by:
jjtAddChild
in interfaceNode
- Overrides:
jjtAddChild
in classSimpleNode
-
getOrdinal
public int getOrdinal() -
setOrdinal
public void setOrdinal(int o) -
getFirstToken
-
setFirstToken
-
getLastToken
-
setLastToken
-
print
-