Class AssemblyParseNumericToken
java.lang.Object
ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseTreeNode
ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseToken
ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseNumericToken
A token having a numeric value
- See Also:
-
Field Summary
Fields inherited from class ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseToken
str, term
Fields inherited from class ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseTreeNode
grammar, parent
-
Constructor Summary
ConstructorDescriptionAssemblyParseNumericToken
(AssemblyGrammar grammar, AssemblyTerminal term, String str, long val) Construct a numeric terminal having the given string and numeric values -
Method Summary
Methods inherited from class ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseToken
generateString, getString, getSym, print
Methods inherited from class ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseTreeNode
getGrammar, getParent, print, setParent
-
Field Details
-
val
protected final long val
-
-
Constructor Details
-
AssemblyParseNumericToken
public AssemblyParseNumericToken(AssemblyGrammar grammar, AssemblyTerminal term, String str, long val) Construct a numeric terminal having the given string and numeric values- Parameters:
grammar
- the grammar containing the terminalterm
- the terminal that matched this tokenstr
- the portion of the input comprising this tokenval
- the numeric value represented by this token
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAssemblyParseToken
-
equals
- Overrides:
equals
in classAssemblyParseToken
-
toString
- Overrides:
toString
in classAssemblyParseToken
-
getNumericValue
public long getNumericValue()Get the numeric value of the token- Returns:
- the value
-