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 ConstructorEntryVisitorcevprotected SubtableSymbolsubtable-
Fields inherited from interface ghidra.app.plugin.languages.sleigh.VisitorResults
CONTINUE, FINISHED, TERMINATE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSubVisitor(SubtableSymbol subtable, ConstructorEntryVisitor cev)Prepare to traverse a subtable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intvisit(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:SubtableEntryVisitorCallback to visit a constructor- Specified by:
visitin interfaceSubtableEntryVisitor- Parameters:
pattern- the pattern corresponding to the constructorcons- the constructor- Returns:
- a value from
VisitorResults
-
-