Class ClassTweakerValidatingVisitor
java.lang.Object
net.fabricmc.classtweaker.validator.ClassTweakerValidatingVisitor
- All Implemented Interfaces:
ClassTweakerVisitor
-
Constructor Summary
ConstructorsConstructorDescriptionClassTweakerValidatingVisitor(net.fabricmc.tinyremapper.api.TrEnvironment environment, ProblemSink sink) -
Method Summary
Modifier and TypeMethodDescription@Nullable AccessWidenerVisitorvisitAccessWidener(String owner) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.fabricmc.classtweaker.api.visitor.ClassTweakerVisitor
visitHeader
-
Constructor Details
-
ClassTweakerValidatingVisitor
public ClassTweakerValidatingVisitor(net.fabricmc.tinyremapper.api.TrEnvironment environment, ProblemSink sink)
-
-
Method Details
-
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
-