Interface ObjectMembers
-
@API(status=EXPERIMENTAL) public interface ObjectMembersDefines 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 Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.static ObjectMembersfieldBased()static ObjectMembersusing(java.util.function.Function<java.lang.reflect.Method,de.skuzzle.test.snapshots.normalize.MethodObjectMembers.PropertyConventions> conventions)static ObjectMembersusingJavaBeansConventions()
-
-
-
Method Detail
-
fieldBased
static ObjectMembers fieldBased()
-
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.
-
-