Top Description Fields Constructors Methods
org.stringtemplate.v4.misc

public Class AggregateModelAdaptor

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

Deal with structs created via ST#addAggr("structname.{prop1, prop2}", ...);.

Field Summary

Modifier and TypeField and Description
private final MapModelAdaptor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getProperty(Interpreter interp, ST self, Aggregate o, 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

Field Detail

mapAdaptorback to summary
private final MapModelAdaptor mapAdaptor

Constructor Detail

AggregateModelAdaptorback to summary
public AggregateModelAdaptor()

Method Detail

getPropertyback to summary
public Object getProperty(Interpreter interp, ST self, Aggregate o, 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