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 longval- 
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 booleanequals(java.lang.Object obj)longgetNumericValue()Get the numeric value of the tokeninthashCode()booleanisNumeric()Check if this node yields a numeric valuejava.lang.StringtoString()- 
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:
 hashCodein classAssemblyParseToken
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classAssemblyParseToken
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classAssemblyParseToken
 
- 
getNumericValue
public long getNumericValue()
Get the numeric value of the token- Returns:
 - the value
 
 
- 
isNumeric
public boolean isNumeric()
Description copied from class:AssemblyParseTreeNodeCheck if this node yields a numeric value- Overrides:
 isNumericin classAssemblyParseTreeNode- Returns:
 - true if this node yields a numeric value
 
 
 - 
 
 -