[Pharo-dev] [Ann] ObjectTravel. A tool to traverse object references

Denis Kudriashov dionisiydk at gmail.com
Fri Jul 22 06:45:02 EDT 2016


Hi.

This is side project of my work on Seamess and RemoteDebuggingTools. You
can load it by:

Gofer it
smalltalkhubUser: 'Pharo' project: 'ObjectTravel';
configuration;
loadStable

ObjectTravel is a tool to deeply traverse "native" references of given
object through instance variables and "array contents".

Usage is quite simple:

traveler := ObjectTraveler on: (1 at 2 corner: 3 at 4).
traveler referencesDo: [:eachRef | eachRed logCr].


Here is list of suitable methods:

   - collectReferences
   - countReferences
   - skip: anObject
   - traverseOnly: predicateBlock
   - copyObject
   - findAllPathsTo: targetObject
   - replaceCurrentReferenceWith: anObject

Details are here
http://dionisiydk.blogspot.fr/2016/07/objecttravel-tool-to-traverse-object.html
.

Best regards,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20160722/e738eb47/attachment.html>


More information about the Pharo-dev mailing list