- mirrorsInterfaceSpec.js Specification of the mirror interfaces using an ad hoc interface description language
- mirrors.js A prototype implementation of the interfaces that supports reflecting over both local and JSON encoded object graphs
- mtest.html Runs a bunch of tests on mirrors.js. Also use it as usage samples.
- jsonObjSample.js Test data used by mtest.html and basic description of encoding. It uses a simple JSON-based encoding for a graph of JavaSript objects including property attributes and other metadata.
Run mtest.html to see samples of using jsmirror. Look at the interface definitions in mirrorsInterfaceSpec.js. Read the code.
For an introduction to the princples behind mirror based reflection read: Mirrors: design principles for meta-level facilites of object-oriented programming languages by Gilad Bracha and David Ungar.