T- the type of values this adaptor can handle.
public interface ModelAdaptor<T>
Mwith property method
M.foo()(as opposed to
M.getFoo()), we can register a model adaptor object,
adap, that converts a lookup for property
foointo a call to
<a.foo>, we look up
foo via the adaptor if
a instanceof M.
java.lang.Object getProperty(Interpreter interp, ST self, T model, java.lang.Object property, java.lang.String propertyName) throws STNoSuchPropertyException
oand return its value.
property is normally a
String but doesn't have to be.
property could be
any key type. If we need to convert to
String, then it's done by
ST and passed in here.
Copyright © 2020. All Rights Reserved.