Class SleighLanguages.ConsVisitForPcode
- java.lang.Object
-
- ghidra.app.plugin.languages.sleigh.SleighLanguages.ConsVisitForPcode
-
- All Implemented Interfaces:
ConstructorEntryVisitor
,VisitorResults
- Enclosing class:
- SleighLanguages
protected static class SleighLanguages.ConsVisitForPcode extends java.lang.Object implements ConstructorEntryVisitor
An internal visitor TheSleighLanguages.traverseAllPcodeOps(SleighLanguage, PcodeOpEntryVisitor)
method uses this visitor to traverse every constructor a given language. For each constructor, it then applies another (anonymous) visitor to traverse each Pcode operation in the visited constructor. That anonymous visitor wraps the visitor given by the caller.
-
-
Field Summary
Fields Modifier and Type Field Description protected PcodeOpEntryVisitor
visitor
-
Fields inherited from interface ghidra.app.plugin.languages.sleigh.VisitorResults
CONTINUE, FINISHED, TERMINATE
-
-
Constructor Summary
Constructors Constructor Description ConsVisitForPcode(PcodeOpEntryVisitor visitor)
Prepare to traverse a constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
visit(SubtableSymbol subtable, DisjointPattern pattern, Constructor cons)
Callback to visit a constructor
-
-
-
Field Detail
-
visitor
protected final PcodeOpEntryVisitor visitor
-
-
Constructor Detail
-
ConsVisitForPcode
public ConsVisitForPcode(PcodeOpEntryVisitor visitor)
Prepare to traverse a constructor- Parameters:
visitor
- the wrapped Pcode operation visitor to invoke
-
-
Method Detail
-
visit
public int visit(SubtableSymbol subtable, DisjointPattern pattern, Constructor cons)
Description copied from interface:ConstructorEntryVisitor
Callback to visit a constructor- Specified by:
visit
in interfaceConstructorEntryVisitor
- Parameters:
subtable
- the table containing the constructorpattern
- the pattern corresponding to the constructorcons
- the constructor- Returns:
- a value from
VisitorResults
-
-