dCsharp

ObjectGraphSlice Members

ObjectGraphSlice overview

Public Instance Constructors

ObjectGraphSliceOverloaded. Initializes a new instance of the ObjectGraphSlice class.

Public Instance Fields

debug 

Public Instance Properties

ClassGraph The class graph that the object graph slice is an instance of.
ObjectGraphThe 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

AsListOverloaded. 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.
GatherOverloaded. 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.
TraverseOverloaded. 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

m_objectGraph 
m_traversal 
root 
startSet 

See Also

ObjectGraphSlice Class | edu.neu.ccs.demeter.dCsharp Namespace