Class ForwardingVisitor
java.lang.Object
net.fabricmc.classtweaker.visitors.ForwardingVisitor
- All Implemented Interfaces:
ClassTweakerVisitor
Forwards visitor events to multiple other visitors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable AccessWidenerVisitorvisitAccessWidener(String owner) voidvisitHeader(String namespace) Visits the header data.voidvisitInjectedInterface(String owner, String iface, boolean transitive) Visit an injected interface.voidvisitLineNumber(int lineNumber) Called by the reader to indicate that we are now on the given line number.
-
Constructor Details
-
ForwardingVisitor
-
-
Method Details
-
visitHeader
Description copied from interface:ClassTweakerVisitorVisits the header data.- Specified by:
visitHeaderin interfaceClassTweakerVisitor- Parameters:
namespace- the access widener's mapping namespace
-
visitAccessWidener
- Specified by:
visitAccessWidenerin interfaceClassTweakerVisitor
-
visitInjectedInterface
Description copied from interface:ClassTweakerVisitorVisit an injected interface.- Specified by:
visitInjectedInterfacein interfaceClassTweakerVisitor- Parameters:
owner- the class name of the class to inject the interface ontoiface- the class name of the interface to inject onto the target class, plus any generics. If generics are present, then this follows the format of JVMS 4.7.9.1ClassTypeSignatures, minus the surroundingLand semicolon.transitive- whether this widener should be applied across mod boundaries
-
visitLineNumber
public void visitLineNumber(int lineNumber) Description copied from interface:ClassTweakerVisitorCalled by the reader to indicate that we are now on the given line number. Useful for reporting errors.- Specified by:
visitLineNumberin interfaceClassTweakerVisitor
-