(STWriter out, InstanceScope scope, Object o, Object property)
| 1138 | } |
| 1139 | |
| 1140 | protected Object getObjectProperty(STWriter out, InstanceScope scope, Object o, Object property) { |
| 1141 | if ( o==null ) { |
| 1142 | errMgr.runTimeError(this, scope, ErrorType.NO_SUCH_PROPERTY, "null."+property); |
| 1143 | return null; |
| 1144 | } |
| 1145 | try { |
| 1146 | final ST self = scope.st; |
| 1147 | ModelAdaptor adap = self.groupThatCreatedThisInstance.getModelAdaptor(o.getClass()); |
| 1148 | return adap.getProperty(this, self, o, property, toString(out, scope, property)); |
| 1149 | } |
| 1150 | catch (STNoSuchPropertyException e) { |
| 1151 | errMgr.runTimeError(this, scope, ErrorType.NO_SUCH_PROPERTY, e, o.getClass().getName()+"."+property); |
| 1152 | } |
| 1153 | return null; |
| 1154 | } |
| 1155 | |
| 1156 | /** |
| 1157 | * Find an attribute via dynamic scoping up enclosing scope chain. Only look |
no test coverage detected