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 Details

    • visitHeader

      default void visitHeader(String namespace)
      Visits the header data.
      Parameters:
      namespace - the access widener's mapping namespace
    • visitAccessWidener

      @Nullable default @Nullable AccessWidenerVisitor visitAccessWidener(String owner)
    • visitInjectedInterface

      default void visitInjectedInterface(String owner, String iface, boolean transitive)
      Visit an injected interface.
      Parameters:
      owner - the class name of the class to inject the interface onto
      iface - 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.1 ClassTypeSignatures, minus the surrounding L and 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

      static ClassTweakerVisitor forward(ClassTweakerVisitor... visitors)
    • transitiveOnly

      static ClassTweakerVisitor transitiveOnly(ClassTweakerVisitor delegate)
    • validate

      static ClassTweakerVisitor validate(net.fabricmc.tinyremapper.api.TrEnvironment environment, ProblemSink sink)