Generic StyleSheets Reflection
GSS makes use of .NET reflection to provide for automatic features.
Property Evaluation
The doGss() function evaluates the public properties of an object reference, checks for that property in its rule dictionary, and if found, attempts to set it to the value it finds.
Path Evaluation
First followed is the object's FullName. Secondly, the calling namespace and the objects class name as an instance. Example:
WorldMaker.Util.GoldDot.Console calls doGss on a WorldMaker.Util.GoldDot.ParseTree instance. It looks for each property under (from general to specific):
- WorldMaker
- WorldMaker.Util
- WorldMaker.Util.GoldDot
- WorldMaker.Util.GoldDot.ParseTree
- WorldMaker.#ParseTree
- WorldMaker.Util.#ParseTree
- WorldMaker.Util.GoldDot.#ParseTree
- WorldMaker.Util.GoldDot.Console.#ParseTree
Self Propagation
If an object, when passed to doGss(), has a public GssParser property, the Gss Parser will attempt to set it to a reference of itself.