Class Constructor
java.lang.Object
ghidra.app.plugin.processors.sleigh.Constructor
- All Implemented Interfaces:
Comparable<Constructor>
The primary sleigh concept representing a semantic action
taking operands (semantic values) as input
producing a semantic value as output
matching a particular pattern
printing in a certain way
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyContext
(ParserWalker walker, SleighDebugLogger debug) Apply any operations on context for this Constructor to a particular InstructionContextint
compareTo
(Constructor that) void
decode
(Decoder decoder, SleighLanguage sleigh) boolean
int
int
getId()
int
int
getNamedTempl
(int secnum) Retrieve a named p-code template sectionint
getOperand
(int i) int[]
Return the indices of the operands in an array in the order they are printed (after the first white space)Returns the source filegetTempl()
int
hashCode()
print
(ParserWalker walker) printBody
(ParserWalker walker) void
printList
(ParserWalker walker, ArrayList<Object> list) printMnemonic
(ParserWalker walker) printSeparator
(int separatorIndex) void
setId
(int val) toString()
-
Constructor Details
-
Constructor
public Constructor()
-
-
Method Details
-
toString
-
getPrintPieces
-
getFlowthruIndex
public int getFlowthruIndex() -
getMinimumLength
public int getMinimumLength() -
setId
public void setId(int val) -
getId
public int getId() -
getLineno
public int getLineno() -
getParent
-
getNumOperands
public int getNumOperands() -
getOperand
-
getTempl
-
getContextChanges
-
print
- Throws:
MemoryAccessException
-
printSeparator
-
printList
- Throws:
MemoryAccessException
-
printMnemonic
- Throws:
MemoryAccessException
-
printBody
- Throws:
MemoryAccessException
-
applyContext
Apply any operations on context for this Constructor to a particular InstructionContext- Parameters:
walker
- the parser walkerdebug
- the debug logger- Throws:
MemoryAccessException
- if the context failed to be applied.
-
getNamedTempl
Retrieve a named p-code template section- Parameters:
secnum
- is the id of the section to return- Returns:
- the named section (or null)
-
decode
- Throws:
DecoderException
-
getOpsPrintOrder
public int[] getOpsPrintOrder()Return the indices of the operands in an array in the order they are printed (after the first white space)- Returns:
- array of operand indices
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Constructor>
-
hashCode
public int hashCode() -
equals
-
getSourceFile
Returns the source file- Returns:
- source file
-