public class MapFileWriter extends java.lang.Object implements MapFileHandler, java.lang.AutoCloseable
| Constructor and Description |
|---|
MapFileWriter(java.io.Writer writer)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
endClass()
Called to indicate that the current class has ended.
|
void |
endFile()
Called to indicate that the processing of the map file has ended.
|
void |
field(java.lang.String originalName,
java.lang.String originalSignature,
java.lang.String newName)
Called to indicate that a field is being processed.
|
void |
method(java.lang.String originalName,
java.lang.String originalSignature,
java.lang.String newName)
Called to indicate that a method is being processed.
|
void |
startClass(java.lang.String originalName,
java.lang.String newName)
Called to indicate that a class is starting.
|
void |
startFile()
Called indicate that the processing of a map file has started.
|
public MapFileWriter(java.io.Writer writer)
writer - where the data will be saved. This will be closed when
endFile() is called.public void startFile()
MapFileHandlerstartFile in interface MapFileHandlerMapFileHandler.endFile()public void endFile()
MapFileHandlerendFile in interface MapFileHandlerMapFileHandler.startFile()public void startClass(java.lang.String originalName,
java.lang.String newName)
MapFileHandlerstartClass in interface MapFileHandleroriginalName - the original name of the class in class file formatnewName - the new name of the class in class file format. May be
null.MapFileHandler.endClass()public void endClass()
MapFileHandlerendClass in interface MapFileHandlerMapFileHandler.startClass(String, String),
MapFileHandler.endClass()public void method(java.lang.String originalName,
java.lang.String originalSignature,
java.lang.String newName)
MapFileHandlermethod in interface MapFileHandleroriginalName - the original name of the methodoriginalSignature - the signature of the method in class file formatnewName - the new name of the method. May be null.MapFileHandler.startClass(String, String),
MapFileHandler.endClass()public void field(java.lang.String originalName,
java.lang.String originalSignature,
java.lang.String newName)
MapFileHandlerfield in interface MapFileHandleroriginalName - the original name of the field.originalSignature - the signature (type) of the field in class file
formatnewName - the new name for the field. May be null.MapFileHandler.startClass(String, String),
MapFileHandler.endClass()public void close()
close in interface java.lang.AutoCloseableCopyright 2022 PreEmptive Solutions, LLC. All Rights Reserved.