public class HorizontalClassMerger
extends java.lang.Object
implements proguard.classfile.visitor.ClassPoolVisitor
ClassMerger| Constructor and Description |
|---|
HorizontalClassMerger(boolean allowAccessModification,
boolean mergeInterfacesAggressively,
java.util.Set<java.lang.String> forbiddenClassNames)
Creates a new HorizontalClassMerger.
|
HorizontalClassMerger(boolean allowAccessModification,
boolean mergeInterfacesAggressively,
java.util.Set<java.lang.String> forbiddenClassNames,
proguard.classfile.visitor.ClassVisitor extraClassVisitor)
Creates a new HorizontalClassMerger.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCandidateForMerging(proguard.classfile.Clazz clazz)
Checks if a class can trivially not be used for merging (either as target or source)
|
void |
visitClassPool(proguard.classfile.ClassPool classPool) |
public HorizontalClassMerger(boolean allowAccessModification,
boolean mergeInterfacesAggressively,
java.util.Set<java.lang.String> forbiddenClassNames)
allowAccessModification - specifies whether the access modifiers of classes can be changed in order to
merge them.mergeInterfacesAggressively - specifies whether interfaces may be merged aggressively.forbiddenClassNames - specifies the names of classes which are excluded from the chance of being mergedpublic HorizontalClassMerger(boolean allowAccessModification,
boolean mergeInterfacesAggressively,
java.util.Set<java.lang.String> forbiddenClassNames,
proguard.classfile.visitor.ClassVisitor extraClassVisitor)
allowAccessModification - specifies whether the access modifiers of classes can be changed in order to
merge them.mergeInterfacesAggressively - specifies whether interfaces may be merged aggressively.forbiddenClassNames - specifies the names of classes which are excluded from the chance of being mergedextraClassVisitor - an optional extra visitor for all merged classes.public void visitClassPool(proguard.classfile.ClassPool classPool)
visitClassPool in interface proguard.classfile.visitor.ClassPoolVisitorpublic boolean isCandidateForMerging(proguard.classfile.Clazz clazz)
clazz - the class.