[stringtemplate-interest] StringTemplateGroup multiple inheritance diff
Zenaan Harkness
zen at freedbms.net
Mon Dec 3 07:13:42 PST 2007
Hi, the changes required for an immediate testing of group multiple
inheritance seem fairly straightforward to me.
First, I looked at StringTemplateGroup to find all superGroup refs:
$ grep -n superGroup\\. StringTemplateGroup.java
443: superGroup.lookupTemplate(enclosingInstance,name);
464: st = superGroup.getInstanceOf(name);
876: return superGroup.getAttributeRenderer(attributeClassType);
884: renderer = superGroup.getAttributeRenderer(attributeClassType);
907: return superGroup.getMap(name);
911: m = superGroup.getMap(name);
A simple container wrapper (possibly lazily created) can store the parents.
For lookupTemplate(), getMap(), etc, simply iterate through all parents and
stop at the first one found.
My question is, are there any problems with this?
I'm a little busy, but intend to test this in time.
cheers
zen
--
Homepage: www.SoulSound.net -- Free Australia: www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.
More information about the stringtemplate-interest
mailing list