Morphtron Object Properties & Accessories(MOPA)
MOPA provides two capabilities:
- a uniform, largely syntax neutral means of interfacing with an object’s native properties/fields/instance variables/methods.
- a uniform, largely syntax neutral means of interfacing with properties unique to a particular instance.These unique instance properties are referred to as accessories.
The “largely syntax neutral” disclaimer is made because Morphtrons could be difficult or even impossible to fully implement in every dynamic OO language. These two capabilites make it possible to write code which can be directly executed by multiple languages across multiple platforms.
There are two executable properties which form the kernel of a Morphtron implementation.
- fetchProperty
- putIntoProperty