Top Constructors Methods
org.stringtemplate.v4.misc

public Class STModelAdaptor

extends Object
implements ModelAdaptor<ST>
Class Inheritance
All Implemented Interfaces
org.stringtemplate.v4.ModelAdaptor
Imports
org.stringtemplate.v4.Interpreter, .ModelAdaptor, .ST

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getProperty(Interpreter interp, ST self, ST model, Object property, String propertyName)

Implements org.stringtemplate.v4.ModelAdaptor.getProperty.

Lookup property name in o and return its value.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

STModelAdaptorback to summary
public STModelAdaptor()

Method Detail

getPropertyback to summary
public Object getProperty(Interpreter interp, ST self, ST model, Object property, String propertyName) throws STNoSuchPropertyException

Implements org.stringtemplate.v4.ModelAdaptor.getProperty.

Doc from org.stringtemplate.v4.ModelAdaptor.getProperty.

Lookup property name in o and return its value.

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.

Annotations
@Override