Class AssemblyParseTreeNode

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      ChangeModifier and Type Method Description
      abstract java.lang.String generateString()
      Generate the string that this node parsed
      AssemblyGrammar getGrammar()
      Get the grammar used to parse the tree
      AssemblyParseBranch getParent()
      Get the branch which contains this node
      abstract AssemblySymbol getSym()
      Get the symbol for which this node is substituted For a branch, this is the LHS of the corresponding production.
      boolean isConstructor()
      Check if this node yields a subconstructor resolution
      boolean isNumeric()
      Check if this node yields a numeric value
      void print​(java.io.PrintStream out)
      For debugging: Display this parse tree via the given stream
      NEWprotected abstract void print​(java.io.PrintStream out, java.lang.String indent)
      For debugging: Display the tree with the given indent
      NEWprotected void setParent​(AssemblyParseBranch parent)
      Set the branch which contains this node
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

  • Method Detail

    • getSym

      public abstract AssemblySymbol getSym()
      Get the symbol for which this node is substituted For a branch, this is the LHS of the corresponding production. For a token, this is the terminal whose tokenizer matched it.
      Returns:
      the symbol
    • getParent

      public AssemblyParseBranch getParent()
      Get the branch which contains this node
      Returns:
    • setParent NEW

      protected void setParent​(AssemblyParseBranch parent)
      Set the branch which contains this node
      Parameters:
      parent -
    • print

      public void print​(java.io.PrintStream out)
      For debugging: Display this parse tree via the given stream
      Parameters:
      out - the stream
    • print NEW

      protected abstract void print​(java.io.PrintStream out,
                                    java.lang.String indent)
      For debugging: Display the tree with the given indent
      Parameters:
      out - the stream
      indent - the indent
    • isConstructor

      public boolean isConstructor()
      Check if this node yields a subconstructor resolution
      Returns:
      true if this node yields a subconstructor resolution
    • isNumeric

      public boolean isNumeric()
      Check if this node yields a numeric value
      Returns:
      true if this node yields a numeric value
    • getGrammar

      public AssemblyGrammar getGrammar()
      Get the grammar used to parse the tree
      Returns:
      the grammar
    • generateString

      public abstract java.lang.String generateString()
      Generate the string that this node parsed
      Returns:
      the string