Package org.stringtemplate.v4.misc
Class STModelAdaptor
- java.lang.Object
-
- org.stringtemplate.v4.misc.STModelAdaptor
-
- All Implemented Interfaces:
ModelAdaptor<ST>
public class STModelAdaptor extends Object implements ModelAdaptor<ST>
-
-
Constructor Summary
Constructors Constructor Description STModelAdaptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetProperty(Interpreter interp, ST self, ST model, Object property, String propertyName)Lookup property name inoand return its value.
-
-
-
Method Detail
-
getProperty
public Object getProperty(Interpreter interp, ST self, ST model, Object property, String propertyName) throws STNoSuchPropertyException
Description copied from interface:ModelAdaptorLookup property name inoand return its value.propertyis normally aStringbut doesn't have to be. E.g., ifoisMap,propertycould be any key type. If we need to convert toString, then it's done bySTand passed in here.- Specified by:
getPropertyin interfaceModelAdaptor<ST>- Throws:
STNoSuchPropertyException
-
-