public class PermittedSubclassAdder extends java.lang.Object implements ConstantVisitor, ClassVisitor
ConstantVisitor
and ClassVisitor
adds the class constants or the classes
that it visits to the given target permitted classes attribute.Constructor and Description |
---|
PermittedSubclassAdder(ProgramClass targetClass,
PermittedSubclassesAttribute targetPermittedSubclassesAttribute)
Creates a new PermittedSubclassAdder 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 PermittedSubclassAdder(ProgramClass targetClass, PermittedSubclassesAttribute targetPermittedSubclassesAttribute)
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