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()
MapFileHandler
startFile
in interface MapFileHandler
MapFileHandler.endFile()
public void endFile()
MapFileHandler
endFile
in interface MapFileHandler
MapFileHandler.startFile()
public void startClass(java.lang.String originalName, java.lang.String newName)
MapFileHandler
startClass
in interface MapFileHandler
originalName
- 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()
MapFileHandler
endClass
in interface MapFileHandler
MapFileHandler.startClass(String, String)
,
MapFileHandler.endClass()
public void method(java.lang.String originalName, java.lang.String originalSignature, java.lang.String newName)
MapFileHandler
method
in interface MapFileHandler
originalName
- 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)
MapFileHandler
field
in interface MapFileHandler
originalName
- 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.AutoCloseable
Copyright 2024 PreEmptive Solutions, LLC. All Rights Reserved.