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

public class JJTreeNode extends SimpleNode
  • Constructor Details

    • JJTreeNode

      public JJTreeNode(int id)
    • JJTreeNode

      public JJTreeNode(JJTreeParser p, int i)
  • Method Details

    • jjtCreate

      public static Node jjtCreate(int id)
    • jjtAddChild

      public void jjtAddChild(Node n, int i)
      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 interface Node
      Overrides:
      jjtAddChild in class SimpleNode
    • getOrdinal

      public int getOrdinal()
    • setOrdinal

      public void setOrdinal(int o)
    • getFirstToken

      public Token getFirstToken()
    • setFirstToken

      public void setFirstToken(Token t)
    • getLastToken

      public Token getLastToken()
    • setLastToken

      public void setLastToken(Token t)
    • print

      protected void print(Token t, org.javacc.jjtree.IO io)