Class SleighLanguages
java.lang.Object
ghidra.app.plugin.languages.sleigh.SleighLanguages
A collection of utility functions for traversing constructors and Pcode operations of SLEIGH
languages
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classAn internal visitor ThetraverseAllPcodeOps(SleighLanguage, PcodeOpEntryVisitor)method uses this visitor to traverse every constructor a given language. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic inttraverseAllPcodeOps(SleighLanguage lang, PcodeOpEntryVisitor visitor) Traverse the Pcode operations of a given SLEIGH language During traversal, if a "NOP" constructor, i.e., one having no Pcode operations, is encountered, the callback is still invoked at least once, with a null Pcode operation.static inttraverseConstructors(SleighLanguage lang, ConstructorEntryVisitor visitor) Traverse the constructors of a given SLEIGH languagestatic inttraverseConstructors(SubtableSymbol subtable, SubtableEntryVisitor visitor) Traverse the constructors of a given table
-
Constructor Details
-
SleighLanguages
public SleighLanguages()
-
-
Method Details
-
traverseConstructors
Traverse the constructors of a given SLEIGH language- Parameters:
lang- the languagevisitor- a callback for each constructor visited- Returns:
- a value from
VisitorResults
-
traverseConstructors
Traverse the constructors of a given table- Parameters:
subtable- the tablevisitor- a callback for each constructor visited- Returns:
- a value from
VisitorResults
-
traverseAllPcodeOps
Traverse the Pcode operations of a given SLEIGH language During traversal, if a "NOP" constructor, i.e., one having no Pcode operations, is encountered, the callback is still invoked at least once, with a null Pcode operation. This is so NOP constructors are not overlooked by this traversal.- Parameters:
lang- the languagevisitor- a callback for each Pcode operation visited- Returns:
- a value from
VisitorResults
-