|
Class: AspectVisitor
Object
|
+--Visitor
|
+--AspectVisitor
|
+--ObjectCoder
- Package:
- stx:libbasic
- Category:
- System-Visiting
- Version:
- rev:
1.3
date: 2023/05/26 11:50:52
- user: cg
- file: AspectVisitor.st directory: libbasic
- module: stx stc-classLibrary: libbasic
This is a Visitor that visits only some aspects of an object.
[instance variables:]
aspect <Symbol|Object> something defining the aspect to be visited
[class variables:]
copyrightCOPYRIGHT (c) 2002 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
aspect
-
return the value of the instance variable 'aspect' (automatically generated)
-
aspect: something
-
set the value of the instance variable 'aspect' (automatically generated)
helpers
-
aspectElementDescriptorFor: anObject
-
return association that should be visited for all child objects of anObject.
Return a collection of associations. The association key is the name of the object,
where the association value is the child object
-
visitChildrenOf: anObject
-
visit all child objects of anObject.
If aspect is defined, perform aspect to fetch the child objects.
Otherwise encode all the instance variables of anObject.
Subclasses may send this message
|