Class SleighConstructorTraversal.SubVisitor
- java.lang.Object
-
- ghidra.app.plugin.languages.sleigh.SleighConstructorTraversal.SubVisitor
-
- All Implemented Interfaces:
SubtableEntryVisitor
,VisitorResults
- Enclosing class:
- SleighConstructorTraversal
protected static class SleighConstructorTraversal.SubVisitor extends java.lang.Object implements SubtableEntryVisitor
An internal visitor TheSleighConstructorTraversal.traverse(ConstructorEntryVisitor)
method iterates over each subtable, traversing each with this visitor. This visitor wraps the visitor given by the caller.
-
-
Field Summary
Fields Modifier and Type Field Description protected ConstructorEntryVisitor
cev
protected SubtableSymbol
subtable
-
Fields inherited from interface ghidra.app.plugin.languages.sleigh.VisitorResults
CONTINUE, FINISHED, TERMINATE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SubVisitor(SubtableSymbol subtable, ConstructorEntryVisitor cev)
Prepare to traverse a subtable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
visit(DisjointPattern pattern, Constructor cons)
Callback to visit a constructor
-
-
-
Field Detail
-
subtable
protected final SubtableSymbol subtable
-
cev
protected final ConstructorEntryVisitor cev
-
-
Constructor Detail
-
SubVisitor
protected SubVisitor(SubtableSymbol subtable, ConstructorEntryVisitor cev)
Prepare to traverse a subtable- Parameters:
subtable
- the subtablecev
- the wrapped constructor visitor to invoke
-
-
Method Detail
-
visit
public int visit(DisjointPattern pattern, Constructor cons)
Description copied from interface:SubtableEntryVisitor
Callback to visit a constructor- Specified by:
visit
in interfaceSubtableEntryVisitor
- Parameters:
pattern
- the pattern corresponding to the constructorcons
- the constructor- Returns:
- a value from
VisitorResults
-
-