Class InputContextScraper
java.lang.Object
ghidra.app.plugin.languages.sleigh.InputContextScraper
A class for scraping input contexts from a SLEIGH language to get all of the valid input contexts
that affect constructor selection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of all valid input contexts that affect constructor selection..
-
Constructor Details
-
InputContextScraper
-
-
Method Details
-
scrapeInputContexts
Returns the set of all valid input contexts that affect constructor selection..- Start with mask of the language's default context
- Scrape language for
globalset
context variables and OR their masks into our mask - Flip bits of our mask to get mask of context variables not used as input (local/transient)
- Check constructor constraints and use mask to get values of relevant input context variables
- Returns:
- the set of all valid input contexts that affect constructor selection.
-