Set locals attribute value when you only know the name, not the index. This is ultimately invoked by calling ST#add from outside so toss an exception to notify them.
(String name, Object value)
| 348 | */ |
| 349 | |
| 350 | protected void rawSetAttribute(String name, Object value) { |
| 351 | if ( impl.formalArguments==null ) { |
| 352 | throw new IllegalArgumentException("no such attribute: "+name); |
| 353 | } |
| 354 | |
| 355 | FormalArgument arg = impl.formalArguments.get(name); |
| 356 | if ( arg==null ) { |
| 357 | throw new IllegalArgumentException("no such attribute: "+name); |
| 358 | } |
| 359 | locals[arg.index] = value; |
| 360 | } |
| 361 | |
| 362 | /** Find an attribute in this template only. */ |
| 363 |
no test coverage detected