Class MemberCollector

  • All Implemented Interfaces:
    MemberVisitor

    public class MemberCollector
    extends java.lang.Object
    implements MemberVisitor
    This MemberVisitor collects dot-separated classname.membername.descriptor strings of the class members that it visits.
    • Constructor Detail

      • MemberCollector

        public MemberCollector​(boolean includeClassName,
                               boolean includeMemberName,
                               boolean includeMemberDescriptor,
                               java.util.Set<java.lang.String> set)
        Creates a new MemberCollector.
        Parameters:
        includeClassName - specifies whether to include the class name in each collected strings.
        includeMemberName - specifies whether to include the member name in each collected strings.
        includeMemberDescriptor - specifies whether to include the member descriptor in each collected strings.
        set - the Set in which all strings will be collected.
    • Method Detail

      • visitAnyMember

        public void visitAnyMember​(Clazz clazz,
                                   Member member)
        Description copied from interface: MemberVisitor
        Visits any Member instance. The more specific default implementations of this interface delegate to this method.
        Specified by:
        visitAnyMember in interface MemberVisitor