Package net.fabricmc.accesswidener
Interface AccessWidenerVisitor
- All Known Implementing Classes:
AccessWidener,AccessWidenerRemapper,AccessWidenerWriter,ForwardingVisitor,TransitiveOnlyFilter
public interface AccessWidenerVisitor
A visitor of the entries defined in an access widener file.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidvisitClass(String name, AccessWidenerReader.AccessType access, boolean transitive) Visits a widened class.default voidvisitField(String owner, String name, String descriptor, AccessWidenerReader.AccessType access, boolean transitive) Visits a widened field.default voidvisitHeader(String namespace) Visits the header data.default voidvisitMethod(String owner, String name, String descriptor, AccessWidenerReader.AccessType access, boolean transitive) Visits a widened method.
-
Method Details
-
visitHeader
Visits the header data.- Parameters:
namespace- the access widener's mapping namespace
-
visitClass
Visits a widened class.- Parameters:
name- the name of the classaccess- the access type (AccessWidenerReader.AccessType.ACCESSIBLEorAccessWidenerReader.AccessType.EXTENDABLE)transitive- whether this widener should be applied across mod boundaries
-
visitMethod
default void visitMethod(String owner, String name, String descriptor, AccessWidenerReader.AccessType access, boolean transitive) Visits a widened method.- Parameters:
owner- the name of the containing classname- the name of the methoddescriptor- the method descriptoraccess- the access type (AccessWidenerReader.AccessType.ACCESSIBLEorAccessWidenerReader.AccessType.EXTENDABLE)transitive- whether this widener should be applied across mod boundaries
-
visitField
default void visitField(String owner, String name, String descriptor, AccessWidenerReader.AccessType access, boolean transitive) Visits a widened field.- Parameters:
owner- the name of the containing classname- the name of the fielddescriptor- the type of the field as a type descriptoraccess- the access type (AccessWidenerReader.AccessType.ACCESSIBLEorAccessWidenerReader.AccessType.MUTABLE)transitive- whether this widener should be applied across mod boundaries
-