getProperty
public java.lang.Object getProperty(Interpreter interp,
ST self,
java.lang.Object o,
java.lang.Object property,
java.lang.String propertyName)
throws STNoSuchPropertyException
Lookup property name in o and return its value. It's a good
idea to cache a Method or Field reflection object to make
this fast after the first look up.
property is normally a String but doesn't have to be. E.g.,
if o is Map, property could be any key type. If we need to convert
to string, then it's done by ST and passed in here.
- Specified by:
getProperty
in interface ModelAdaptor
- Overrides:
getProperty
in class MapModelAdaptor
- Throws:
STNoSuchPropertyException