ObjectGraphSlice overview
Public Instance Constructors
ObjectGraphSlice | Overloaded. Initializes a new instance of the ObjectGraphSlice class. |
Public Instance Fields
Public Instance Properties
ClassGraph | The class graph that the object graph slice is an instance of. |
ObjectGraph | The object graph that this is a slice of. |
Root | The root of the object graph slice. |
Strategy | The strategy expression that was used to build the traversal. |
Traversal | The traversal that determines the slice. |
Public Instance Methods
AsList | Overloaded. A fixed-size List backed by the object graph slice. The elements of the list are the target objects reachable by following the strategy through the graph. If forward is true, the graph is traversed in left-to-right prefix order, otherwise it is traversed in right-to-left postfix order. Note that this list (like the List returned by {@link Arrays#asList}, but unlike the Vector returned by {@link #gather()}) is write-through, i.e. modifying it will modify the underlying object graph, and vice versa. |
Equals | Compare the traversals and roots with Equals(). |
Fetch | Return the target object in the object graph slice reachable by following the strategy. There must be a unique path to it, or else a FetchException is thrown. |
Gather | Overloaded. Return a list of all target objects in the object graph slice reachable by following the strategy. Traverse the graph in left-to-right prefix order if forward is true, otherwise traverse in right-to-left postfix order. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) | Gets the Type of the current instance. |
ToString (inherited from Object) | Returns a String that represents the current Object. |
Traverse | Overloaded. Visit the object graph slice with the visitors in v, returning v[0].getReturnValue(). Traverse edges in left-to-right order if forward is true, otherwise traverse in right-to-left order. |
Protected Instance Methods
Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
Protected Internal Instance Fields
See Also
ObjectGraphSlice Class | edu.neu.ccs.demeter.dCsharp Namespace