Interface ObjectMembers


  • @API(status=EXPERIMENTAL)
    public interface ObjectMembers
    Defines how direct members of an actual object instance are discovered. Use any of the static factories in this interface to obtain an instance.
    Author:
    Simon Taddiken
    See Also:
    ObjectTraversal
    API Note:
    This interface is meant for internal implementations only.
    • Method Detail

      • usingJavaBeansConventions

        static ObjectMembers usingJavaBeansConventions()
      • using

        static ObjectMembers using​(java.util.function.Function<java.lang.reflect.Method,​de.skuzzle.test.snapshots.normalize.MethodObjectMembers.PropertyConventions> conventions)
      • directMembersOf

        java.util.stream.Stream<ObjectMember> directMembersOf​(java.lang.Object root,
                                                              java.lang.Object collectionParent,
                                                              de.skuzzle.test.snapshots.normalize.VisitorContext visitorContext)
        Internal API method that is used to determine the direct members of the given root object without recursing into children.
        Parameters:
        root - The root object to inspect.
        collectionParent - If the root object was discovered within a collection, this is a reference to the collection.
        visitorContext - Context information for the current traversal.
        Returns:
        Stream of direct children.