Class RegularAsFlatMappingVisitor
java.lang.Object
net.fabricmc.mappingio.adapter.RegularAsFlatMappingVisitor
- All Implemented Interfaces:
FlatMappingVisitor
A
FlatMappingVisitor that forwards all relevant data to a regular MappingVisitor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFlags()voidreset()booleanvisitClass(String srcName, String dstName) booleanvisitClass(String srcName, String[] dstNames) voidvisitClassComment(String srcName, @Nullable String[] dstNames, String comment) voidvisitClassComment(String srcName, @Nullable String dstName, String comment) booleanDetermine whether the mapping content (classes and anything below, metadata if not part of the header) should be visited.booleanvisitEnd()Finish the visitation pass.booleanvisitField(String srcClsName, String srcName, @Nullable String srcDesc, @Nullable String[] dstClsNames, String[] dstNames, @Nullable String[] dstDescs) booleanvisitField(String srcClsName, String srcName, @Nullable String srcDesc, @Nullable String dstClsName, String dstName, @Nullable String dstDesc) voidvisitFieldComment(String srcClsName, String srcName, @Nullable String srcDesc, @Nullable String[] dstClsNames, @Nullable String[] dstNames, @Nullable String[] dstDescs, String comment) voidvisitFieldComment(String srcClsName, String srcName, @Nullable String srcDesc, @Nullable String dstClsName, @Nullable String dstName, @Nullable String dstDesc, String comment) booleanDetermine whether the header (namespaces, metadata if part of the header) should be visited.voidvisitMetadata(String key, @Nullable String value) booleanvisitMethod(String srcClsName, String srcName, @Nullable String srcDesc, @Nullable String[] dstClsNames, String[] dstNames, @Nullable String[] dstDescs) booleanvisitMethod(String srcClsName, String srcName, @Nullable String srcDesc, @Nullable String dstClsName, String dstName, @Nullable String dstDesc) booleanvisitMethodArg(String srcClsName, String srcMethodName, @Nullable String srcMethodDesc, int argPosition, int lvIndex, @Nullable String srcArgName, @Nullable String[] dstClsNames, @Nullable String[] dstMethodNames, @Nullable String[] dstMethodDescs, String[] dstArgNames) booleanvisitMethodArg(String srcClsName, String srcMethodName, @Nullable String srcMethodDesc, int argPosition, int lvIndex, @Nullable String srcArgName, @Nullable String dstClsName, @Nullable String dstMethodName, @Nullable String dstMethodDesc, String dstArgName) voidvisitMethodArgComment(String srcClsName, String srcMethodName, @Nullable String srcMethodDesc, int argPosition, int lvIndex, @Nullable String srcArgName, @Nullable String[] dstClsNames, @Nullable String[] dstMethodNames, @Nullable String[] dstMethodDescs, @Nullable String[] dstArgNames, String comment) voidvisitMethodArgComment(String srcClsName, String srcMethodName, @Nullable String srcMethodDesc, int argPosition, int lvIndex, @Nullable String srcArgName, @Nullable String dstClsName, @Nullable String dstMethodName, @Nullable String dstMethodDesc, @Nullable String dstArgName, String comment) voidvisitMethodComment(String srcClsName, String srcName, @Nullable String srcDesc, @Nullable String[] dstClsNames, @Nullable String[] dstNames, @Nullable String[] dstDescs, String comment) voidvisitMethodComment(String srcClsName, String srcName, @Nullable String srcDesc, @Nullable String dstClsName, @Nullable String dstName, @Nullable String dstDesc, String comment) booleanvisitMethodVar(String srcClsName, String srcMethodName, @Nullable String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, int endOpIdx, @Nullable String srcVarName, @Nullable String[] dstClsNames, @Nullable String[] dstMethodNames, @Nullable String[] dstMethodDescs, String[] dstVarNames) booleanvisitMethodVar(String srcClsName, String srcMethodName, @Nullable String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, int endOpIdx, @Nullable String srcVarName, @Nullable String dstClsName, @Nullable String dstMethodName, @Nullable String dstMethodDesc, String dstVarName) voidvisitMethodVarComment(String srcClsName, String srcMethodName, @Nullable String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, int endOpIdx, @Nullable String srcVarName, @Nullable String[] dstClsNames, @Nullable String[] dstMethodNames, @Nullable String[] dstMethodDescs, @Nullable String[] dstVarNames, String comment) voidvisitMethodVarComment(String srcClsName, String srcMethodName, @Nullable String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, int endOpIdx, @Nullable String srcVarName, @Nullable String dstClsName, @Nullable String dstMethodName, @Nullable String dstMethodDesc, @Nullable String dstVarName, String comment) voidvisitNamespaces(String srcNamespace, List<String> dstNamespaces) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FlatMappingVisitor
asRegularVisitor, visitClassComment, visitField, visitField, visitFieldComment, visitMethod, visitMethod, visitMethodArg, visitMethodArg, visitMethodArgComment, visitMethodComment, visitMethodVar, visitMethodVar, visitMethodVarComment
-
Constructor Details
-
RegularAsFlatMappingVisitor
-
-
Method Details
-
getFlags
- Specified by:
getFlagsin interfaceFlatMappingVisitor
-
reset
public void reset()- Specified by:
resetin interfaceFlatMappingVisitor
-
visitHeader
Description copied from interface:FlatMappingVisitorDetermine whether the header (namespaces, metadata if part of the header) should be visited.- Specified by:
visitHeaderin interfaceFlatMappingVisitor- Returns:
trueif the header is to be visited,falseotherwise.- Throws:
IOException
-
visitNamespaces
- Specified by:
visitNamespacesin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMetadata
- Specified by:
visitMetadatain interfaceFlatMappingVisitor- Throws:
IOException
-
visitContent
Description copied from interface:FlatMappingVisitorDetermine whether the mapping content (classes and anything below, metadata if not part of the header) should be visited.- Specified by:
visitContentin interfaceFlatMappingVisitor- Returns:
trueif content is to be visited,falseotherwise.- Throws:
IOException
-
visitClass
- Specified by:
visitClassin interfaceFlatMappingVisitor- Throws:
IOException
-
visitClass
- Specified by:
visitClassin interfaceFlatMappingVisitor- Throws:
IOException
-
visitClassComment
public void visitClassComment(String srcName, @Nullable @Nullable String[] dstNames, String comment) throws IOException - Specified by:
visitClassCommentin interfaceFlatMappingVisitor- Throws:
IOException
-
visitClassComment
public void visitClassComment(String srcName, @Nullable @Nullable String dstName, String comment) throws IOException - Specified by:
visitClassCommentin interfaceFlatMappingVisitor- Throws:
IOException
-
visitField
public boolean visitField(String srcClsName, String srcName, @Nullable @Nullable String srcDesc, @Nullable @Nullable String[] dstClsNames, String[] dstNames, @Nullable @Nullable String[] dstDescs) throws IOException - Specified by:
visitFieldin interfaceFlatMappingVisitor- Throws:
IOException
-
visitField
public boolean visitField(String srcClsName, String srcName, @Nullable @Nullable String srcDesc, @Nullable @Nullable String dstClsName, String dstName, @Nullable @Nullable String dstDesc) throws IOException - Specified by:
visitFieldin interfaceFlatMappingVisitor- Throws:
IOException
-
visitFieldComment
public void visitFieldComment(String srcClsName, String srcName, @Nullable @Nullable String srcDesc, @Nullable @Nullable String[] dstClsNames, @Nullable @Nullable String[] dstNames, @Nullable @Nullable String[] dstDescs, String comment) throws IOException - Specified by:
visitFieldCommentin interfaceFlatMappingVisitor- Throws:
IOException
-
visitFieldComment
public void visitFieldComment(String srcClsName, String srcName, @Nullable @Nullable String srcDesc, @Nullable @Nullable String dstClsName, @Nullable @Nullable String dstName, @Nullable @Nullable String dstDesc, String comment) throws IOException - Specified by:
visitFieldCommentin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethod
public boolean visitMethod(String srcClsName, String srcName, @Nullable @Nullable String srcDesc, @Nullable @Nullable String[] dstClsNames, String[] dstNames, @Nullable @Nullable String[] dstDescs) throws IOException - Specified by:
visitMethodin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethod
public boolean visitMethod(String srcClsName, String srcName, @Nullable @Nullable String srcDesc, @Nullable @Nullable String dstClsName, String dstName, @Nullable @Nullable String dstDesc) throws IOException - Specified by:
visitMethodin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethodComment
public void visitMethodComment(String srcClsName, String srcName, @Nullable @Nullable String srcDesc, @Nullable @Nullable String[] dstClsNames, @Nullable @Nullable String[] dstNames, @Nullable @Nullable String[] dstDescs, String comment) throws IOException - Specified by:
visitMethodCommentin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethodComment
public void visitMethodComment(String srcClsName, String srcName, @Nullable @Nullable String srcDesc, @Nullable @Nullable String dstClsName, @Nullable @Nullable String dstName, @Nullable @Nullable String dstDesc, String comment) throws IOException - Specified by:
visitMethodCommentin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethodArg
public boolean visitMethodArg(String srcClsName, String srcMethodName, @Nullable @Nullable String srcMethodDesc, int argPosition, int lvIndex, @Nullable @Nullable String srcArgName, @Nullable @Nullable String[] dstClsNames, @Nullable @Nullable String[] dstMethodNames, @Nullable @Nullable String[] dstMethodDescs, String[] dstArgNames) throws IOException - Specified by:
visitMethodArgin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethodArg
public boolean visitMethodArg(String srcClsName, String srcMethodName, @Nullable @Nullable String srcMethodDesc, int argPosition, int lvIndex, @Nullable @Nullable String srcArgName, @Nullable @Nullable String dstClsName, @Nullable @Nullable String dstMethodName, @Nullable @Nullable String dstMethodDesc, String dstArgName) throws IOException - Specified by:
visitMethodArgin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethodArgComment
public void visitMethodArgComment(String srcClsName, String srcMethodName, @Nullable @Nullable String srcMethodDesc, int argPosition, int lvIndex, @Nullable @Nullable String srcArgName, @Nullable @Nullable String[] dstClsNames, @Nullable @Nullable String[] dstMethodNames, @Nullable @Nullable String[] dstMethodDescs, @Nullable @Nullable String[] dstArgNames, String comment) throws IOException - Specified by:
visitMethodArgCommentin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethodArgComment
public void visitMethodArgComment(String srcClsName, String srcMethodName, @Nullable @Nullable String srcMethodDesc, int argPosition, int lvIndex, @Nullable @Nullable String srcArgName, @Nullable @Nullable String dstClsName, @Nullable @Nullable String dstMethodName, @Nullable @Nullable String dstMethodDesc, @Nullable @Nullable String dstArgName, String comment) throws IOException - Specified by:
visitMethodArgCommentin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethodVar
public boolean visitMethodVar(String srcClsName, String srcMethodName, @Nullable @Nullable String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, int endOpIdx, @Nullable @Nullable String srcVarName, @Nullable @Nullable String[] dstClsNames, @Nullable @Nullable String[] dstMethodNames, @Nullable @Nullable String[] dstMethodDescs, String[] dstVarNames) throws IOException - Specified by:
visitMethodVarin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethodVar
public boolean visitMethodVar(String srcClsName, String srcMethodName, @Nullable @Nullable String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, int endOpIdx, @Nullable @Nullable String srcVarName, @Nullable @Nullable String dstClsName, @Nullable @Nullable String dstMethodName, @Nullable @Nullable String dstMethodDesc, String dstVarName) throws IOException - Specified by:
visitMethodVarin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethodVarComment
public void visitMethodVarComment(String srcClsName, String srcMethodName, @Nullable @Nullable String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, int endOpIdx, @Nullable @Nullable String srcVarName, @Nullable @Nullable String[] dstClsNames, @Nullable @Nullable String[] dstMethodNames, @Nullable @Nullable String[] dstMethodDescs, @Nullable @Nullable String[] dstVarNames, String comment) throws IOException - Specified by:
visitMethodVarCommentin interfaceFlatMappingVisitor- Throws:
IOException
-
visitMethodVarComment
public void visitMethodVarComment(String srcClsName, String srcMethodName, @Nullable @Nullable String srcMethodDesc, int lvtRowIndex, int lvIndex, int startOpIdx, int endOpIdx, @Nullable @Nullable String srcVarName, @Nullable @Nullable String dstClsName, @Nullable @Nullable String dstMethodName, @Nullable @Nullable String dstMethodDesc, @Nullable @Nullable String dstVarName, String comment) throws IOException - Specified by:
visitMethodVarCommentin interfaceFlatMappingVisitor- Throws:
IOException
-
visitEnd
Description copied from interface:FlatMappingVisitorFinish the visitation pass.- Specified by:
visitEndin interfaceFlatMappingVisitor- Returns:
trueif the visitation pass is final,falseif it should be started over.- Throws:
IOException
-