/** * An order-sensitive invocation of {@link ClassVisitor#visitNestHost(String)}. * * @param nestHost The internal name of the nest host. */ protected void onVisitNestHost(String nestHost) { super.visitNestHost(nestHost); }
@Override public void visitNestHost(String nestHost) { observedTypes.add(nestHost); super.visitNestHost(nestHost); }
/** * Visits the nest host class of the class. A nest is a set of classes of the same package that * share access to their private members. One of these classes, called the host, lists the other * members of the nest, which in turn should link to the host of their nest. This method must be * called only once and only if the visited class is a non-host member of a nest. A class is * implicitly its own nest, so it's invalid to call this method with the visited class name as * argument. * * @param nestHost the internal name of the host class of the nest. */ public void visitNestHost(final String nestHost) { if (api < Opcodes.ASM7) { throw new UnsupportedOperationException("This feature requires ASM7"); } if (cv != null) { cv.visitNestHost(nestHost); } }
@Override public void visitNestHost(String nestHost) { constraint.assertNestMate(); super.visitNestHost(nestHost); }
classVisitor.visitNestHost(nestHostClass);
instrumentedType.getInterfaces().asErasures().toInternalNames()); if (!instrumentedType.isNestHost()) { classVisitor.visitNestHost(instrumentedType.getNestHost().getInternalName());