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

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


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

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

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

Best regards,
-------------- 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