Class SimilarMemberVisitor

  • All Implemented Interfaces:
    MemberVisitor

    public class SimilarMemberVisitor
    extends java.lang.Object
    implements MemberVisitor
    This MemberVisitor lets a given MemberVisitor visit all members that have the same name and type as the visited methods in the class hierarchy of the members' classes or of a given target class.
    • Constructor Detail

      • SimilarMemberVisitor

        public SimilarMemberVisitor​(boolean visitThisMember,
                                    boolean visitSuperMembers,
                                    boolean visitInterfaceMembers,
                                    boolean visitOverridingMembers,
                                    MemberVisitor memberVisitor)
        Creates a new SimilarMemberVisitor.
        Parameters:
        visitThisMember - specifies whether to visit the class members in the members' classes themselves.
        visitSuperMembers - specifies whether to visit the class members in the super classes of the members' classes.
        visitInterfaceMembers - specifies whether to visit the class members in the interface classes of the members' classes.
        visitOverridingMembers - specifies whether to visit the class members in the subclasses of the members' classes.
        memberVisitor - the MemberVisitor to which visits will be delegated.
      • SimilarMemberVisitor

        public SimilarMemberVisitor​(Clazz targetClass,
                                    boolean visitThisMember,
                                    boolean visitSuperMembers,
                                    boolean visitInterfaceMembers,
                                    boolean visitOverridingMembers,
                                    MemberVisitor memberVisitor)
        Creates a new SimilarMemberVisitor.
        Parameters:
        targetClass - the class in whose hierarchy to look for the visited class members.
        visitThisMember - specifies whether to visit the class members in the target class itself.
        visitSuperMembers - specifies whether to visit the class members in the super classes of the target class.
        visitInterfaceMembers - specifies whether to visit the class members in the interface classes of the target class.
        visitOverridingMembers - specifies whether to visit the class members in the subclasses of the target class.
        memberVisitor - the MemberVisitor to which visits will be delegated.