MCPcopy Index your code
hub / github.com/antlr/codebuff / AggregateModelAdaptor

Class AggregateModelAdaptor

output/java8/1.4.17/AggregateModelAdaptor.java:38–44  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

36
37
38public class AggregateModelAdaptor extends MapModelAdaptor {
39 @Override
40 public Object getProperty(Interpreter interp, ST self, Object o, Object property, String propertyName) throws STNoSuchPropertyException {
41 Map<?, ?> map = ((Aggregate)o).properties;
42 return super.getProperty(interp, self, map, property, propertyName);
43 }
44}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected