org.wamblee.reflection
Class ObjectTraversal
java.lang.Object
org.wamblee.reflection.ObjectTraversal
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:
- All fields and methods of the
Object class.
- All fields and methods of collection classes (List, Map, Set), and of
arrays.
- Author:
- Erik Brakkee
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
public static final Logger LOGGER
ObjectTraversal
public ObjectTraversal(ObjectTraversal.ObjectVisitor aVisitor)
- Constructs the traversal.
- Parameters:
aVisitor - Visitor to use.
addExcludedObject
public void addExcludedObject(Object aObject)
- Adds an object instance to exclude from traversal.
- Parameters:
aObject - Object to add.
accept
public void accept(Object aObject)
processMap
public <Key,Value> void processMap(Map<Key,Value> aMap)
processArray
public void processArray(Object aObject)
Copyright © 2011. All Rights Reserved.