Class AssemblyParseToken

    • Field Detail

      • str

        protected final java.lang.String str
    • Constructor Detail

      • AssemblyParseToken

        public AssemblyParseToken​(AssemblyGrammar grammar,
                                  AssemblyTerminal term,
                                  java.lang.String str)
        Construct a new token having the given string value
        grammar - the grammar containing the terminal
        term - the terminal that matched this token
        str - the portion of the input comprising this token
    • Method Detail

      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object
      • getString

        public java.lang.String getString()
        Get the portion of the input comprising the token
        the string value
      • getSym

        public AssemblyTerminal getSym()
        Description copied from class: AssemblyParseTreeNode
        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.
        Specified by:
        getSym in class AssemblyParseTreeNode
        the symbol
      • print

        protected void print​( out,
                             java.lang.String indent)
        Description copied from class: AssemblyParseTreeNode
        For debugging: Display the tree with the given indent
        Specified by:
        print in class AssemblyParseTreeNode
        out - the stream
        indent - the indent
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object