Index
All Classes and Interfaces|All Packages
A
- alreadySeen(Object) - Method in class de.serra.graph_walker.GraphWalk
-
Used to detect circular object graphs.
- ARRAY - Enum constant in enum de.serra.graph_walker.GraphWalkerStackFrame.State
-
Visit an array next.
- ARRAY_MEMBER - Enum constant in enum de.serra.graph_walker.GraphWalkerStackFrame.State
-
Visit the member of an array next.
B
- BEFORE_OBJECT - Enum constant in enum de.serra.graph_walker.GraphWalkerStackFrame.State
-
Call beforeObject next.
- beforeObject() - Method in class de.serra.graph_walker.GraphWalk
-
Calls
ObjectgraphVisitor.beforeObject(Object, VisitController, boolean)and determins the next state depending on the object. - beforeObject(Object, VisitController, boolean) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when any value is encountered.
C
- CLASS - Enum constant in enum de.serra.graph_walker.GraphWalkerStackFrame.State
-
Visit a "normal" object next.
- CLASS_FIELD - Enum constant in enum de.serra.graph_walker.GraphWalkerStackFrame.State
-
Visit the field of a "normal" object next.
- CONTINUE - Enum constant in enum de.serra.graph_walker.GraphWalk.Control
-
The default.
- CONTINUE_BUT_DONT_GO_DEEPER - Enum constant in enum de.serra.graph_walker.GraphWalk.Control
-
Don't visit any members or fields of the curent object.
- CONTINUE_BUT_DONT_GO_SUPER - Enum constant in enum de.serra.graph_walker.GraphWalk.Control
-
Don't visit any (more) super classes of the current object.
- currentStackFrame() - Method in class de.serra.graph_walker.GraphWalk
-
Returns the current stack frame.
D
- de.serra.graph_walker - module de.serra.graph_walker
-
A visitor library for Object graphs.
- de.serra.graph_walker - package de.serra.graph_walker
- dispatch() - Method in class de.serra.graph_walker.GraphWalk
-
Determins which method to call depending on the state of the current
StackFrame. - dontGoDeeper() - Method in class de.serra.graph_walker.VisitController
-
Don't visit any children of the current value.
G
- goBack() - Method in class de.serra.graph_walker.GraphWalk
-
Removes the current stack frame.
- GraphWalk - Class in de.serra.graph_walker
-
Entry point to start the traversal of an object graph.
- GraphWalk(ObjectgraphVisitor) - Constructor for class de.serra.graph_walker.GraphWalk
-
Constructs.
- GraphWalk.Control - Enum in de.serra.graph_walker
-
Controls the traversal.
- GraphWalkerStackFrame<V> - Class in de.serra.graph_walker
-
Represents the method specific state at this point in the call stack.
- GraphWalkerStackFrame(GraphWalkerStackFrame.State, V) - Constructor for class de.serra.graph_walker.GraphWalkerStackFrame
-
Constructs.
- GraphWalkerStackFrame.State - Enum in de.serra.graph_walker
-
The types of methods available for dispatching.
- grow(int) - Method in class de.serra.graph_walker.GraphWalk
-
Increases the capacity to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
I
- isDone() - Method in class de.serra.graph_walker.GraphWalk
-
Used to determin if the current traversal is done.
- isDontGoDeeper() - Method in class de.serra.graph_walker.GraphWalk
-
Should the children not be traversed.
- isDontGoSuper() - Method in class de.serra.graph_walker.GraphWalk
-
Should the parent classes not be traversed.
- isLeaving() - Method in class de.serra.graph_walker.GraphWalkerStackFrame
-
Is this stack frame is being returned to.
- isStopped() - Method in class de.serra.graph_walker.GraphWalk
-
Is the traversal stopped?
- isStopped() - Method in class de.serra.graph_walker.VisitController
-
Determin if the visit was stopped by
VisitController.stop().
L
- leave() - Method in class de.serra.graph_walker.GraphWalk
-
Removes the current stack frame and informs the next stack frame that we are returning to it.
- leave() - Method in class de.serra.graph_walker.GraphWalkerStackFrame
-
Marks the stackframe as being returned to.
- leaveArray(Object[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called after all members in an array have been
visited. - leaveArrayMember(Object, int, Object[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when leaving an entry in an non primitive array.
- leaveClass(Object, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when visiting of a class has finished.
- leaveClassField(Object, Field, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when leaving a class field.
- leaveIterable(Object, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Not yet implemented.
- leaveList(List<?>, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Not yet implemented.
- leaveMap(Map<?, ?>, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Not yet implemented.
O
- ObjectgraphVisitor - Interface in de.serra.graph_walker
-
Visitor for the object graph.
P
- pushOnStack(GraphWalkerStackFrame<?>) - Method in class de.serra.graph_walker.GraphWalk
-
Adds a new stack frame on top of the stack.
R
- relativeFromCurrent(int) - Method in class de.serra.graph_walker.GraphWalk
-
Returns a stack frame relative to the current one.
- resetControl() - Method in class de.serra.graph_walker.GraphWalk
-
Used to continue the traversal as normal.
- resetDirection() - Method in class de.serra.graph_walker.GraphWalkerStackFrame
-
Sets the direction to entering again.
S
- state() - Method in class de.serra.graph_walker.GraphWalkerStackFrame
-
The state decides which method to use for dispatching to the correct method.
- stop() - Method in class de.serra.graph_walker.VisitController
-
Immediatly stop the traversal.
- STOP - Enum constant in enum de.serra.graph_walker.GraphWalk.Control
-
Immediatly stop the traversal.
V
- value() - Method in class de.serra.graph_walker.GraphWalkerStackFrame
-
The "main" value associated with this stack frame.
- valueOf(String) - Static method in enum de.serra.graph_walker.GraphWalk.Control
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.serra.graph_walker.GraphWalkerStackFrame.State
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum de.serra.graph_walker.GraphWalk.Control
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum de.serra.graph_walker.GraphWalkerStackFrame.State
-
Returns an array containing the constants of this enum type, in the order they are declared.
- visitArray() - Method in class de.serra.graph_walker.GraphWalk
-
Visits an array.
- visitArray(Object[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when an non primitive array is encountered.
- visitArrayMember() - Method in class de.serra.graph_walker.GraphWalk
-
Visits an array member.
- visitArrayMember(Object, int, Object[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called for every entry in an non primitive array.
- visitBooleanArray(boolean[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when a
boolean[]is encountered. - visitByteArray(byte[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when a
byte[]is encountered. - visitCharArray(char[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when a
char[]is encountered. - visitClass() - Method in class de.serra.graph_walker.GraphWalk
-
Visits an "normal" object.
- visitClass(Object, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when visiting "normal" class.
- visitClassField() - Method in class de.serra.graph_walker.GraphWalk
-
Visits the field of an Object.
- visitClassField(Object, Field, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when visiting a field in a class.
- VisitController - Class in de.serra.graph_walker
-
Allows to control the traversal.
- VisitController() - Constructor for class de.serra.graph_walker.VisitController
-
Constructs.
- visitDoubleArray(double[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when a
double[]is encountered. - visitEnum(Enum<?>, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Not yet implemented.
- visitFloatArray(float[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when a
float[]is encountered. - visitIntArray(int[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when an
int[]is encountered. - visitIterableMember(Object, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Not yet implemented.
- visitList(List<?>, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Not yet implemented.
- visitListMember(Object, int, List<?>, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Not yet implemented.
- visitLongArray(long[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when a
long[]is encountered. - visitMap(Map<?, ?>, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Not yet implemented.
- visitMapEntry(Object, Object, Map<?, ?>, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Not yet implemented.
- visitNonListIterable(Iterable<?>, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Not yet implemented.
- visitNull(VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when a
nullvalue is encountered. - visitShortArray(short[], VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when a
short[]is encountered. - visitSuperClass(Object, Class<?>, VisitController) - Method in interface de.serra.graph_walker.ObjectgraphVisitor
-
Called when visiting the parent of a class.
W
- walk(Object) - Method in class de.serra.graph_walker.GraphWalk
-
Start the traversal of
toWalk.
All Classes and Interfaces|All Packages