|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.util.SimplifiedVisitor
proguard.optimize.peephole.SingleImplementationFixer
public class SingleImplementationFixer
This ClassVisitor cleans up after the SingleImplementationInliner. It fixes the names of interfaces that have single implementations, lets the implementations and fields references point to them again. This is necessary after the SingleImplementationInliner has overzealously renamed the interfaces to the single implementations, let the single implementations point to themselves as interfaces, and let the field references point to the single implementations.
SingleImplementationInliner,
ClassReferenceFixer| Constructor Summary | |
|---|---|
SingleImplementationFixer()
|
|
| Method Summary | |
|---|---|
void |
visitAnyConstant(Clazz clazz,
Constant constant)
|
void |
visitFieldrefConstant(Clazz clazz,
FieldrefConstant fieldrefConstant)
|
void |
visitProgramClass(ProgramClass programClass)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface proguard.classfile.visitor.ClassVisitor |
|---|
visitLibraryClass |
| Methods inherited from interface proguard.classfile.constant.visitor.ConstantVisitor |
|---|
visitClassConstant, visitDoubleConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitLongConstant, visitMethodrefConstant, visitNameAndTypeConstant, visitStringConstant, visitUtf8Constant |
| Constructor Detail |
|---|
public SingleImplementationFixer()
| Method Detail |
|---|
public void visitProgramClass(ProgramClass programClass)
visitProgramClass in interface ClassVisitorvisitProgramClass in class SimplifiedVisitor
public void visitAnyConstant(Clazz clazz,
Constant constant)
visitAnyConstant in class SimplifiedVisitor
public void visitFieldrefConstant(Clazz clazz,
FieldrefConstant fieldrefConstant)
visitFieldrefConstant in interface ConstantVisitorvisitFieldrefConstant in class SimplifiedVisitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||