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
-
public class AssemblyParseNumericToken extends AssemblyParseToken
A token having a numeric value
-
-
Field Summary
Fields Modifier and Type Field Description protected long
val
-
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
Constructors Constructor Description AssemblyParseNumericToken(AssemblyGrammar grammar, AssemblyTerminal term, java.lang.String str, long val)
Construct a numeric terminal having the given string and numeric values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
long
getNumericValue()
Get the numeric value of the tokenint
hashCode()
boolean
isNumeric()
Check if this node yields a numeric valuejava.lang.String
toString()
-
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, isConstructor, print, setParent
-
-
-
-
Constructor Detail
-
AssemblyParseNumericToken
public AssemblyParseNumericToken(AssemblyGrammar grammar, AssemblyTerminal term, java.lang.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 Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAssemblyParseToken
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAssemblyParseToken
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAssemblyParseToken
-
getNumericValue
public long getNumericValue()
Get the numeric value of the token- Returns:
- the value
-
isNumeric
public boolean isNumeric()
Description copied from class:AssemblyParseTreeNode
Check if this node yields a numeric value- Overrides:
isNumeric
in classAssemblyParseTreeNode
- Returns:
- true if this node yields a numeric value
-
-