Package net.fabricmc.mappingio
Interface FlatMappingVisitor
- All Known Implementing Classes:
RegularAsFlatMappingVisitor
public interface FlatMappingVisitor
-
Method Summary
Modifier and TypeMethodDescriptiondefault MappingVisitorstatic FlatMappingVisitorfromMethodVisitor(MappingVisitor visitor) default Set<MappingFlag>getFlags()default voidreset()default booleanvisitClass(String srcName, String dstName) booleanvisitClass(String srcName, String[] dstNames) default voidvisitClassComment(String srcName, String comment) voidvisitClassComment(String srcName, String[] dstNames, String comment) default voidvisitClassComment(String srcName, String dstName, String comment) default booleanDetermine whether the mapping content (classes and anything below, metadata if not part of the header) should be visited.default booleanvisitEnd()Finish the visitation pass.default booleanvisitField(String srcClsName, String srcName, String srcDesc, String dstName) default booleanvisitField(String srcClsName, String srcName, String srcDesc, String[] dstNames) booleanvisitField(String srcClsName, String srcName, String srcDesc, String[] dstClsNames, String[] dstNames, String[] dstDescs) default booleanvisitField(String srcClsName, String srcName, String srcDesc, String dstClsName, String dstName, String dstDesc) default voidvisitFieldComment(String srcClsName, String srcName, String srcDesc, String comment) voidvisitFieldComment(String srcClsName, String srcName, String srcDesc, String[] dstClsNames, String[] dstNames, String[] dstDescs, String comment) default voidvisitFieldComment(String srcClsName, String srcName, String srcDesc, String dstClsName, String dstName, String dstDesc, String comment) default booleanDetermine whether the header (namespaces, metadata if part of the header) should be visited.default voidvisitMetadata(String key, String value) default booleanvisitMethod(String srcClsName, String srcName, String srcDesc, String dstName) default booleanvisitMethod(String srcClsName, String srcName, String srcDesc, String[] dstNames) booleanvisitMethod(String srcClsName, String srcName, String srcDesc, String[] dstClsNames, String[] dstNames, String[] dstDescs) default booleanvisitMethod(String srcClsName, String srcName, String srcDesc, String dstClsName, String dstName, String dstDesc) default booleanvisitMethodArg(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String dstArgName) default booleanvisitMethodArg(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String[] dstArgNames) booleanvisitMethodArg(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String[] dstClsNames, String[] dstMethodNames, String[] dstMethodDescs, String[] dstArgNames) default booleanvisitMethodArg(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String dstClsName, String dstMethodName, String dstMethodDesc, String dstArgName) default voidvisitMethodArgComment(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String comment) voidvisitMethodArgComment(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String[] dstClsNames, String[] dstMethodNames, String[] dstMethodDescs, String[] dstArgNames, String comment) default voidvisitMethodArgComment(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String dstClsName, String dstMethodName, String dstMethodDesc, String dstArgName, String comment) default voidvisitMethodComment(String srcClsName, String srcName, String srcDesc, String comment) voidvisitMethodComment(String srcClsName, String srcName, String srcDesc, String[] dstClsNames, String[] dstNames, String[] dstDescs, String comment) default voidvisitMethodComment(String srcClsName, String srcName, String srcDesc, String dstClsName, String dstName, String dstDesc, String comment) default booleanvisitMethodVar(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String dstVarName) default booleanvisitMethodVar(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String[] dstVarNames) booleanvisitMethodVar(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String[] dstClsNames, String[] dstMethodNames, String[] dstMethodDescs, String[] dstVarNames) default booleanvisitMethodVar(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String dstClsName, String dstMethodName, String dstMethodDesc, String dstVarName) default voidvisitMethodVarComment(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String comment) voidvisitMethodVarComment(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String[] dstClsNames, String[] dstMethodNames, String[] dstMethodDescs, String[] dstVarNames, String comment) default voidvisitMethodVarComment(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String dstClsName, String dstMethodName, String dstMethodDesc, String dstVarName, String comment) voidvisitNamespaces(String srcNamespace, List<String> dstNamespaces)
-
Method Details
-
getFlags
-
reset
default void reset() -
visitHeader
Determine whether the header (namespaces, metadata if part of the header) should be visited.- Returns:
- true if the header is to be visited, false otherwise
- Throws:
IOException
-
visitNamespaces
- Throws:
IOException
-
visitMetadata
- Throws:
IOException
-
visitContent
Determine whether the mapping content (classes and anything below, metadata if not part of the header) should be visited.- Returns:
- true if content is to be visited, false otherwise
- Throws:
IOException
-
visitClass
- Throws:
IOException
-
visitClassComment
- Throws:
IOException
-
visitField
boolean visitField(String srcClsName, String srcName, String srcDesc, String[] dstClsNames, String[] dstNames, String[] dstDescs) throws IOException - Throws:
IOException
-
visitFieldComment
void visitFieldComment(String srcClsName, String srcName, String srcDesc, String[] dstClsNames, String[] dstNames, String[] dstDescs, String comment) throws IOException - Throws:
IOException
-
visitMethod
boolean visitMethod(String srcClsName, String srcName, String srcDesc, String[] dstClsNames, String[] dstNames, String[] dstDescs) throws IOException - Throws:
IOException
-
visitMethodComment
void visitMethodComment(String srcClsName, String srcName, String srcDesc, String[] dstClsNames, String[] dstNames, String[] dstDescs, String comment) throws IOException - Throws:
IOException
-
visitMethodArg
boolean visitMethodArg(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String[] dstClsNames, String[] dstMethodNames, String[] dstMethodDescs, String[] dstArgNames) throws IOException - Throws:
IOException
-
visitMethodArgComment
void visitMethodArgComment(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String[] dstClsNames, String[] dstMethodNames, String[] dstMethodDescs, String[] dstArgNames, String comment) throws IOException - Throws:
IOException
-
visitMethodVar
boolean visitMethodVar(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String[] dstClsNames, String[] dstMethodNames, String[] dstMethodDescs, String[] dstVarNames) throws IOException - Throws:
IOException
-
visitMethodVarComment
void visitMethodVarComment(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String[] dstClsNames, String[] dstMethodNames, String[] dstMethodDescs, String[] dstVarNames, String comment) throws IOException - Throws:
IOException
-
visitEnd
Finish the visitation pass.- Returns:
- true if the visitation pass is final, false if it should be started over
- Throws:
IOException
-
asMethodVisitor
-
fromMethodVisitor
-
visitField
default boolean visitField(String srcClsName, String srcName, String srcDesc, String[] dstNames) throws IOException - Throws:
IOException
-
visitMethod
default boolean visitMethod(String srcClsName, String srcName, String srcDesc, String[] dstNames) throws IOException - Throws:
IOException
-
visitMethodArg
default boolean visitMethodArg(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String[] dstArgNames) throws IOException - Throws:
IOException
-
visitMethodVar
default boolean visitMethodVar(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String[] dstVarNames) throws IOException - Throws:
IOException
-
visitClass
- Throws:
IOException
-
visitClassComment
- Throws:
IOException
-
visitClassComment
- Throws:
IOException
-
visitField
default boolean visitField(String srcClsName, String srcName, String srcDesc, String dstName) throws IOException - Throws:
IOException
-
visitField
default boolean visitField(String srcClsName, String srcName, String srcDesc, String dstClsName, String dstName, String dstDesc) throws IOException - Throws:
IOException
-
visitFieldComment
default void visitFieldComment(String srcClsName, String srcName, String srcDesc, String comment) throws IOException - Throws:
IOException
-
visitFieldComment
default void visitFieldComment(String srcClsName, String srcName, String srcDesc, String dstClsName, String dstName, String dstDesc, String comment) throws IOException - Throws:
IOException
-
visitMethod
default boolean visitMethod(String srcClsName, String srcName, String srcDesc, String dstName) throws IOException - Throws:
IOException
-
visitMethod
default boolean visitMethod(String srcClsName, String srcName, String srcDesc, String dstClsName, String dstName, String dstDesc) throws IOException - Throws:
IOException
-
visitMethodComment
default void visitMethodComment(String srcClsName, String srcName, String srcDesc, String comment) throws IOException - Throws:
IOException
-
visitMethodComment
default void visitMethodComment(String srcClsName, String srcName, String srcDesc, String dstClsName, String dstName, String dstDesc, String comment) throws IOException - Throws:
IOException
-
visitMethodArg
default boolean visitMethodArg(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String dstArgName) throws IOException - Throws:
IOException
-
visitMethodArg
default boolean visitMethodArg(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String dstClsName, String dstMethodName, String dstMethodDesc, String dstArgName) throws IOException - Throws:
IOException
-
visitMethodArgComment
default void visitMethodArgComment(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String comment) throws IOException - Throws:
IOException
-
visitMethodArgComment
default void visitMethodArgComment(String srcClsName, String srcMethodName, String srcMethodDesc, int argPosition, int lvIndex, String srcArgName, String dstClsName, String dstMethodName, String dstMethodDesc, String dstArgName, String comment) throws IOException - Throws:
IOException
-
visitMethodVar
default boolean visitMethodVar(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String dstVarName) throws IOException - Throws:
IOException
-
visitMethodVar
default boolean visitMethodVar(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String dstClsName, String dstMethodName, String dstMethodDesc, String dstVarName) throws IOException - Throws:
IOException
-
visitMethodVarComment
default void visitMethodVarComment(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String comment) throws IOException - Throws:
IOException
-
visitMethodVarComment
default void visitMethodVarComment(String srcClsName, String srcMethodName, String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, String srcVarName, String dstClsName, String dstMethodName, String dstMethodDesc, String dstVarName, String comment) throws IOException - Throws:
IOException
-