(STWriter out, InstanceScope scope, Object o, Object property)
| 1168 | } |
| 1169 | |
| 1170 | protected Object getObjectProperty(STWriter out, InstanceScope scope, Object o, Object property) { |
| 1171 | if ( o==null ) { |
| 1172 | errMgr.runTimeError(this, scope, ErrorType.NO_SUCH_PROPERTY, "null."+property); |
| 1173 | return null; |
| 1174 | } |
| 1175 | try { |
| 1176 | final ST self = scope.st; |
| 1177 | ModelAdaptor adap = self.groupThatCreatedThisInstance.getModelAdaptor(o.getClass()); |
| 1178 | return adap.getProperty(this, self, o, property, toString(out, scope, property)); |
| 1179 | } |
| 1180 | catch (STNoSuchPropertyException e) { |
| 1181 | errMgr.runTimeError(this, scope, ErrorType.NO_SUCH_PROPERTY, e, o.getClass().getName()+"."+property); |
| 1182 | } |
| 1183 | return null; |
| 1184 | } |
| 1185 | |
| 1186 | /** |
| 1187 | * Find an attribute via dynamic scoping up enclosing scope chain. Only look |
no test coverage detected