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
FieldsFields inherited from class ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseToken
str, termFields inherited from class ghidra.app.plugin.assembler.sleigh.tree.AssemblyParseTreeNode
grammar, parent -
Constructor Summary
ConstructorsConstructorDescriptionAssemblyParseNumericToken(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, printMethods 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:
hashCodein classAssemblyParseToken
-
equals
- Overrides:
equalsin classAssemblyParseToken
-
toString
- Overrides:
toStringin classAssemblyParseToken
-
getNumericValue
public long getNumericValue()Get the numeric value of the token- Returns:
- the value
-