Package proguard.classfile.editor
Class PermittedSubclassAdder
java.lang.Object
proguard.classfile.editor.PermittedSubclassAdder
- All Implemented Interfaces:
ConstantVisitor,ClassVisitor
This
ConstantVisitor and ClassVisitor adds the class constants or the classes
that it visits to the given target permitted classes attribute.-
Constructor Summary
ConstructorsConstructorDescriptionPermittedSubclassAdder(ProgramClass targetClass, PermittedSubclassesAttribute targetPermittedSubclassesAttribute) Creates a new PermittedSubclassAdder that will add classes to the given target nest members attribute. -
Method Summary
Modifier and TypeMethodDescriptionvoidvisitAnyClass(Clazz clazz) Visits any Clazz instance.voidvisitAnyConstant(Clazz clazz, Constant constant) Visits any Constant instance.voidvisitClassConstant(Clazz clazz, ClassConstant classConstant) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface proguard.classfile.visitor.ClassVisitor
visitLibraryClass, visitProgramClassMethods inherited from interface proguard.classfile.constant.visitor.ConstantVisitor
visitAnyMethodrefConstant, visitAnyRefConstant, visitDoubleConstant, visitDynamicConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
-
Constructor Details
-
PermittedSubclassAdder
public PermittedSubclassAdder(ProgramClass targetClass, PermittedSubclassesAttribute targetPermittedSubclassesAttribute) Creates a new PermittedSubclassAdder that will add classes to the given target nest members attribute.
-
-
Method Details
-
visitAnyConstant
Description copied from interface:ConstantVisitorVisits any Constant instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyConstantin interfaceConstantVisitor
-
visitClassConstant
- Specified by:
visitClassConstantin interfaceConstantVisitor
-
visitAnyClass
Description copied from interface:ClassVisitorVisits any Clazz instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyClassin interfaceClassVisitor
-