proguard.obfuscate
Class Utf8Shrinker
java.lang.Object
proguard.obfuscate.Utf8Shrinker
- All Implemented Interfaces:
- ClassFileVisitor
- public class Utf8Shrinker
- extends Object
- implements ClassFileVisitor
This ClassFileVisitor removes UTF-8 constant pool entries that are not marked
as being used.
- See Also:
Utf8UsageMarker
|
Constructor Summary |
Utf8Shrinker(int codeLength)
Creates a new Utf8Shrinker. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utf8Shrinker
public Utf8Shrinker(int codeLength)
- Creates a new Utf8Shrinker.
- Parameters:
codeLength - an estimate of the maximum length of all the code that
will be edited.
visitProgramClassFile
public void visitProgramClassFile(ProgramClassFile programClassFile)
- Specified by:
visitProgramClassFile in interface ClassFileVisitor
visitLibraryClassFile
public void visitLibraryClassFile(LibraryClassFile libraryClassFile)
- Specified by:
visitLibraryClassFile in interface ClassFileVisitor