public class NestMemberAdder extends java.lang.Object implements ConstantVisitor, ClassVisitor
ConstantVisitor
and ClassVisitor
adds the class constants or the classes
that it visits to the given target nest member attribute.Constructor and Description |
---|
NestMemberAdder(ProgramClass targetClass,
NestMembersAttribute targetNestMembersAttribute)
Creates a new NestMemberAdder that will add classes to the given target nest members attribute.
|
Modifier and Type | Method and 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnyMethodrefConstant, visitAnyRefConstant, visitDoubleConstant, visitDynamicConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
visitLibraryClass, visitProgramClass
public NestMemberAdder(ProgramClass targetClass, NestMembersAttribute targetNestMembersAttribute)
public void visitAnyConstant(Clazz clazz, Constant constant)
ConstantVisitor
visitAnyConstant
in interface ConstantVisitor
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
visitClassConstant
in interface ConstantVisitor
public void visitAnyClass(Clazz clazz)
ClassVisitor
visitAnyClass
in interface ClassVisitor