An object graph slice is a subobject of an object; or: an object graph slice is a subgraph of an object graph.
The following incarnations of abstract slicing are possible:
void check(ClassGraph cg){
...
cg.traverse(this, strategy, visitor);
}
is an example of a method in this category. An object graph slice
will be created implicitly from the class graph, the strategy and this.
void check(ClassGraph tg, Strategy strategy){
...
cg.traverse(this, strategy, visitor);
}
An object graph slice
will be created implicitly from the class graph, the strategy and this.
void check(TraversalGraph tg){
...
tg.traverse(this, visitor);
}
An object graph slice will be created implicitely from the traversal graph
and this.