dCsharp

Traversal Members

Traversal overview

Public Instance Constructors

TraversalOverloaded. Initializes a new instance of the Traversal class.

Public Instance Properties

ClassGraph (inherited from edu.neu.ccs.demeter.APRlib.TraversalBase)The class graph used in computing this traversal.
EdgeSetList 
FinishSet 
NodeSetList 
Strategy The strategy expression used to compute the traversal.

Public Instance Methods

AsList A fixed-size List backed by the object graph rooted at obj. The elements of the list are the objects reachable by the strategy in the object graph with the given root whose class is a target of the strategy. Note that this list (like the List returned by Arrays.asList, but unlike the List returned by gather()) is write-through, i.e. modifying it will modify the underlying object graph, and vice versa. @throws TraversalSourceException if the type of obj is not a source of the strategy.
Equals 
Fetch Fetch the object in the object graph rooted at obj corresponding to the target(s) of the traversal.
Gather Gather into a list the objects in the object graph rooted at obj corresponding to the target(s) of the traversal.
getAlternationEdgeSet (inherited from edu.neu.ccs.demeter.APRlib.TraversalBase)The set of copies of class graph alternation edge u
=>
v in the traversal, or null if there are none. Note that u and v may be either nodes or their string representations.
getConstructionEdgeSet (inherited from edu.neu.ccs.demeter.APRlib.TraversalBase)The set of copies of class graph construction edge u
-l->
v in the traversal, or null if there are none. Note that u and v may be either nodes or their string representations.
getEdgeSet (inherited from edu.neu.ccs.demeter.APRlib.TraversalBase)Overloaded. The set of copies of class graph edge e in the traversal graph, or null if there are none.
getEdgeSetOverloaded.  
getFinishSet 
GetHashCode 
getInheritanceEdgeSet (inherited from edu.neu.ccs.demeter.APRlib.TraversalBase)The set of copies of class graph inheritance edge u
:>
v in the traversal, or null if there are none. Note that u and v may be either nodes or their string representations.
getNodeSet 
getStartSetOverloaded.  
GetType (inherited from Object)Gets the Type of the current instance.
intersect (inherited from edu.neu.ccs.demeter.APRlib.TraversalBase)The intersection of this traversal with another traversal, that is, the set of paths that are in both traversals.
Slice The slice of the object graph rooted at obj determined by the traversal.
ToClassGraph Make a class graph with just the classes and edges in the traversal.
toCompactString (inherited from edu.neu.ccs.demeter.APRlib.TraversalBase)A string representation of the nodes and edges in the traversal.
ToString 
TraverseOverloaded. Traverse the object graph rooted at obj according to the traversal, visiting the visitors in array v in sequence at each node and returning the value of v[0].getReturnValue() at the end of the traversal.

Protected Instance Fields

classGraph (inherited from edu.neu.ccs.demeter.APRlib.TraversalBase) 
strategy 
traversal 

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.

See Also

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