Class AssemblyParseToken
java.lang.Object
ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseTreeNode
ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseToken
- Direct Known Subclasses:
AssemblyParseNumericToken
,AssemblySentential.WhiteSpaceParseToken
A string token
- See Also:
-
Field Summary
Fields inherited from class ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseTreeNode
grammar, parent
-
Constructor Summary
ConstructorDescriptionAssemblyParseToken
(AssemblyGrammar grammar, AssemblyTerminal term, String str) Construct a new token having the given string value -
Method Summary
Modifier and TypeMethodDescriptionboolean
Generate the string that this node parsedGet the portion of the input comprising the tokengetSym()
Get the symbol for which this node is substitutedint
hashCode()
protected void
print
(PrintStream out, String indent) For debugging: Display the tree with the given indenttoString()
Methods inherited from class ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseTreeNode
getGrammar, getParent, print, setParent
-
Field Details
-
term
-
str
-
-
Constructor Details
-
AssemblyParseToken
Construct a new token having the given string value- Parameters:
grammar
- the grammar containing the terminalterm
- the terminal that matched this tokenstr
- the portion of the input comprising this token
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getString
Get the portion of the input comprising the token- Returns:
- the string value
-
getSym
Description copied from class:AssemblyParseTreeNode
Get the symbol for which this node is substitutedFor 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 classAssemblyParseTreeNode
- Returns:
- the symbol
-
print
Description copied from class:AssemblyParseTreeNode
For debugging: Display the tree with the given indent- Specified by:
print
in classAssemblyParseTreeNode
- Parameters:
out
- the streamindent
- the indent
-
toString
-
generateString
Description copied from class:AssemblyParseTreeNode
Generate the string that this node parsed- Specified by:
generateString
in classAssemblyParseTreeNode
- Returns:
- the string
-