public class ObjectTraversal extends Object
Class encapsulating object traversal through the fields and properties of an object. The class accepts a visitor in its constructor whose job it is to process any visited fields of the object.
The following fields and methods are excluded:
Object class.| Modifier and Type | Class and Description | 
|---|---|
| static interface  | ObjectTraversal.ObjectVisitorVisitor interface to be implemented for object traversal. | 
| Constructor and Description | 
|---|
| ObjectTraversal(ObjectTraversal.ObjectVisitor aVisitor)Constructs the traversal. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | accept(Object aObject) | 
| void | addExcludedObject(Object aObject)Adds an object instance to exclude from traversal. | 
| void | processArray(Object aObject) | 
| <Key,Value> | processMap(Map<Key,Value> aMap) | 
public static final Logger LOGGER
public ObjectTraversal(ObjectTraversal.ObjectVisitor aVisitor)
aVisitor - Visitor to use.public void addExcludedObject(Object aObject)
aObject - Object to add.public void accept(Object aObject)
public <Key,Value> void processMap(Map<Key,Value> aMap)
public void processArray(Object aObject)
Copyright © 2025. All rights reserved.