Package proguard.classfile.editor
Class NestMemberAdder
- java.lang.Object
-
- proguard.classfile.editor.NestMemberAdder
-
- All Implemented Interfaces:
ConstantVisitor
,ClassVisitor
public class NestMemberAdder extends java.lang.Object implements ConstantVisitor, ClassVisitor
ThisConstantVisitor
andClassVisitor
adds the class constants or the classes that it visits to the given target nest member attribute.
-
-
Constructor Summary
Constructors Constructor Description NestMemberAdder(ProgramClass targetClass, NestMembersAttribute targetNestMembersAttribute)
Creates a new NestMemberAdder that will add classes to the given target nest members attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitAnyClass(Clazz clazz)
Visits any Clazz instance.void
visitAnyConstant(Clazz clazz, Constant constant)
Visits any Constant instance.void
visitClassConstant(Clazz clazz, ClassConstant classConstant)
-
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, visitProgramClass
-
Methods 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 Detail
-
NestMemberAdder
public NestMemberAdder(ProgramClass targetClass, NestMembersAttribute targetNestMembersAttribute)
Creates a new NestMemberAdder that will add classes to the given target nest members attribute.
-
-
Method Detail
-
visitAnyConstant
public void visitAnyConstant(Clazz clazz, Constant constant)
Description copied from interface:ConstantVisitor
Visits any Constant instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyConstant
in interfaceConstantVisitor
-
visitClassConstant
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
- Specified by:
visitClassConstant
in interfaceConstantVisitor
-
visitAnyClass
public void visitAnyClass(Clazz clazz)
Description copied from interface:ClassVisitor
Visits any Clazz instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyClass
in interfaceClassVisitor
-
-