(STWriter out, InstanceScope scope, Object o, Object property)
| 1194 | } |
| 1195 | |
| 1196 | protected Object getObjectProperty(STWriter out, InstanceScope scope, Object o, Object property) { |
| 1197 | if ( o==null ) { |
| 1198 | errMgr.runTimeError(this, scope, ErrorType.NO_SUCH_PROPERTY, "null."+property); |
| 1199 | return null; |
| 1200 | } |
| 1201 | try { |
| 1202 | final ST self = scope.st; |
| 1203 | ModelAdaptor adap = self.groupThatCreatedThisInstance.getModelAdaptor(o.getClass()); |
| 1204 | return adap.getProperty(this, self, o, property, toString(out, scope, property)); |
| 1205 | } |
| 1206 | catch (STNoSuchPropertyException e) { |
| 1207 | errMgr.runTimeError(this, scope, ErrorType.NO_SUCH_PROPERTY, e, o.getClass().getName()+"."+property); |
| 1208 | } |
| 1209 | return null; |
| 1210 | } |
| 1211 | |
| 1212 | /** |
| 1213 | * Find an attribute via dynamic scoping up enclosing scope chain. Only look |
no test coverage detected