Class InputContextScraper

java.lang.Object
ghidra.app.plugin.languages.sleigh.InputContextScraper

public class InputContextScraper extends Object
A class for scraping input contexts from a SLEIGH language to get all of the valid input contexts that affect constructor selection
  • Constructor Details

    • InputContextScraper

      public InputContextScraper(SleighLanguage language)
  • Method Details

    • scrapeInputContexts

      public Set<AssemblyPatternBlock> scrapeInputContexts()
      Returns the set of all valid input contexts that affect constructor selection..
      1. Start with mask of the language's default context
      2. Scrape language for globalset context variables and OR their masks into our mask
      3. Flip bits of our mask to get mask of context variables not used as input (local/transient)
      4. 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.