Class NestHostFinder

    • Constructor Detail

      • NestHostFinder

        public NestHostFinder()
    • Method Detail

      • inSameNest

        public boolean inSameNest​(Clazz class1,
                                  Clazz class2)
        Returns whether the two given classes are in the same nest.
      • findNestHostClassName

        public java.lang.String findNestHostClassName​(Clazz clazz)
        Returns the class name of the nest host of the given class. This may be the class itself, if the class doesn't have a nest host attribute (including for class versions below Java 11 and for library classes).
      • 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 interface ClassVisitor
      • visitAnyAttribute

        public void visitAnyAttribute​(Clazz clazz,
                                      Attribute attribute)
        Description copied from interface: AttributeVisitor
        Visits any Attribute instance. The more specific default implementations of this interface delegate to this method.
        Specified by:
        visitAnyAttribute in interface AttributeVisitor