Package net.fabricmc.mappingio.format
Class EnigmaWriter
java.lang.Object
net.fabricmc.mappingio.format.EnigmaWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,MappingVisitor,MappingWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getFlags()booleanvisitClass(String srcName) voidvisitComment(MappedElementKind targetKind, String comment) Comment for the specified element (last content-visited or any parent).voidvisitDstName(MappedElementKind targetKind, int namespace, String name) Destination name for the current element.booleanvisitElementContent(MappedElementKind targetKind) Determine whether the element content (comment, sub-elements) should be visited.booleanvisitEnd()Finish the visitation pass.booleanvisitField(String srcName, String srcDesc) booleanvisitMethod(String srcName, String srcDesc) booleanvisitMethodArg(int argPosition, int lvIndex, String srcName) booleanvisitMethodVar(int lvtRowIndex, int lvIndex, int startOpIdx, String srcName) voidvisitNamespaces(String srcNamespace, List<String> dstNamespaces) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.fabricmc.mappingio.MappingVisitor
reset, visitContent, visitDstDesc, visitHeader, visitMetadata
-
Constructor Details
-
EnigmaWriter
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getFlags
- Specified by:
getFlagsin interfaceMappingVisitor
-
visitNamespaces
- Specified by:
visitNamespacesin interfaceMappingVisitor
-
visitClass
- Specified by:
visitClassin interfaceMappingVisitor
-
visitField
- Specified by:
visitFieldin interfaceMappingVisitor- Throws:
IOException
-
visitMethod
- Specified by:
visitMethodin interfaceMappingVisitor- Throws:
IOException
-
visitMethodArg
- Specified by:
visitMethodArgin interfaceMappingVisitor- Throws:
IOException
-
visitMethodVar
- Specified by:
visitMethodVarin interfaceMappingVisitor
-
visitEnd
Description copied from interface:MappingVisitorFinish the visitation pass.- Specified by:
visitEndin interfaceMappingVisitor- Returns:
- true if the visitation pass is final, false if it should be started over
- Throws:
IOException
-
visitDstName
public void visitDstName(MappedElementKind targetKind, int namespace, String name) throws IOException Description copied from interface:MappingVisitorDestination name for the current element.- Specified by:
visitDstNamein interfaceMappingVisitornamespace- namespace index, index into the dstNamespaces List inMappingVisitor.visitNamespaces(java.lang.String, java.util.List<java.lang.String>)name- destination name- Throws:
IOException
-
visitElementContent
Description copied from interface:MappingVisitorDetermine whether the element content (comment, sub-elements) should be visited.Called after visiting the target itself (e.g. visitClass for targetKind=class), its dst names and descs, but before any child elements or the comment.
This is also a notification about all available dst names having been passed on.
- Specified by:
visitElementContentin interfaceMappingVisitor- Returns:
- true if the contents are to be visited, false otherwise
- Throws:
IOException
-
visitComment
Description copied from interface:MappingVisitorComment for the specified element (last content-visited or any parent).- Specified by:
visitCommentin interfaceMappingVisitorcomment- comment as a potentially multi-line string- Throws:
IOException
-