Interface ClassTweakerVisitor
- All Known Subinterfaces:
ClassTweaker,ClassTweakerWriter
- All Known Implementing Classes:
ClassTweakerImpl,ClassTweakerRemapperVisitor,ClassTweakerValidatingVisitor,ClassTweakerWriterImpl,ForwardingVisitor,TransitiveOnlyFilter
public interface ClassTweakerVisitor
A visitor of the entries defined in an access widener file.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassTweakerVisitorforward(ClassTweakerVisitor... visitors) static ClassTweakerVisitorremap(ClassTweakerVisitor delegate, Remapper remapper, String fromNamespace, String toNamespace) static ClassTweakerVisitortransitiveOnly(ClassTweakerVisitor delegate) static ClassTweakerVisitorvalidate(net.fabricmc.tinyremapper.api.TrEnvironment environment, ProblemSink sink) default @Nullable AccessWidenerVisitorvisitAccessWidener(String owner) default voidvisitHeader(String namespace) Visits the header data.default voidvisitInjectedInterface(String owner, String iface, boolean transitive) Visit an injected interface.default voidvisitLineNumber(int lineNumber) Called by the reader to indicate that we are now on the given line number.
-
Method Details
-
visitHeader
Visits the header data.- Parameters:
namespace- the access widener's mapping namespace
-
visitAccessWidener
-
visitInjectedInterface
Visit an injected interface.- 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
default void visitLineNumber(int lineNumber) Called by the reader to indicate that we are now on the given line number. Useful for reporting errors. -
remap
static ClassTweakerVisitor remap(ClassTweakerVisitor delegate, Remapper remapper, String fromNamespace, String toNamespace) -
forward
-
transitiveOnly
-
validate
static ClassTweakerVisitor validate(net.fabricmc.tinyremapper.api.TrEnvironment environment, ProblemSink sink)
-