/** * An order-sensitive invocation of {@link ClassVisitor#visitNestMember(String)}. * * @param nestMember The internal name of the nest member. */ protected void onVisitNestMember(String nestMember) { super.visitNestMember(nestMember); }
@Override public void visitNestMember(String nestMember) { observedTypes.add(nestMember); super.visitNestMember(nestMember); }
/** * Visits a member of the nest. 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 if * the visited class is the host of a nest. A nest host is implicitly a member of its own nest, so * it's invalid to call this method with the visited class name as argument. * * @param nestMember the internal name of a nest member. */ public void visitNestMember(final String nestMember) { if (api < Opcodes.ASM7) { throw new UnsupportedOperationException("This feature requires ASM7"); } if (cv != null) { cv.visitNestMember(nestMember); } }
@Override public void visitNestMember(String nestMember) { constraint.assertNestMate(); super.visitNestMember(nestMember); }
int currentNestMemberOffset = nestMembersOffset + 2; while (numberOfNestMembers-- > 0) { classVisitor.visitNestMember(readClass(currentNestMemberOffset, charBuffer)); currentNestMemberOffset += 2;
if (instrumentedType.isNestHost()) { for (TypeDescription typeDescription : instrumentedType.getNestMembers().filter(not(is(instrumentedType)))) { classVisitor.visitNestMember(typeDescription.getInternalName());