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