public static class ExportHprof.Remap extends Object
Constructor and Description |
---|
Remap(Pattern skipPattern,
Pattern avoidPattern,
boolean matchFields,
boolean undo)
Create a remapper
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRemapped(String cn)
Is the class name one which should have a new name invented?
|
void |
loadMapping(File mapFile,
boolean undo)
Load the existing mapping table from a mapping properties file.
|
String |
mapClass(String cn)
Return the renamed version of a class
|
String |
mapField(String cn)
Return the renamed version of a simple field/method
|
String |
mapSignature(String sig)
Return the renamed version of a method/type signature
|
String |
renameClassName(String classname)
Renames a class.
|
String |
renameFileName(String classname,
String filename)
Rename a file name based on a class name.
|
String |
renameMethodName(String className,
String method,
boolean upper)
Generate a new method name.
|
String |
renameSignature(String signature)
Rename a method signature.
|
void |
saveMapping(File mapFile,
boolean undo,
String comments) |
public void loadMapping(File mapFile, boolean undo) throws IOException
mapFile
- the Java format properties fileundo
- whether to reverse the mappings contained in the fileIOException
public void saveMapping(File mapFile, boolean undo, String comments) throws IOException
IOException
public boolean isRemapped(String cn)
cn
- public String mapClass(String cn)
cn
- public String mapField(String cn)
cn
- public String mapSignature(String sig)
cn
- public String renameFileName(String classname, String filename)
classname
- filename
- public String renameSignature(String signature)
signature
- public String renameMethodName(String className, String method, boolean upper)
className
- method
- upper
- static field in upper case, else all lower case.public String renameClassName(String classname)
classname
-