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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyContext(ParserWalker walker, SleighDebugLogger debug) Apply any operations on context for this Constructor to a particular InstructionContextintcompareTo(Constructor that) voiddecode(Decoder decoder, SleighLanguage sleigh) booleanintintgetId()intintgetNamedTempl(int secnum) Retrieve a named p-code template sectionintgetOperand(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()inthashCode()print(ParserWalker walker) printBody(ParserWalker walker) voidprintList(ParserWalker walker, ArrayList<Object> list) printMnemonic(ParserWalker walker) printSeparator(int separatorIndex) voidsetId(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:
compareToin interfaceComparable<Constructor>
-
hashCode
public int hashCode() -
equals
-
getSourceFile
Returns the source file- Returns:
- source file
-