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)
| 349 | */ |
| 350 | |
| 351 | protected void rawSetAttribute(String name, Object value) { |
| 352 | if ( impl.formalArguments==null ) { |
| 353 | throw new IllegalArgumentException("no such attribute: "+name); |
| 354 | } |
| 355 | |
| 356 | FormalArgument arg = impl.formalArguments.get(name); |
| 357 | if ( arg==null ) { |
| 358 | throw new IllegalArgumentException("no such attribute: "+name); |
| 359 | } |
| 360 | locals[arg.index] = value; |
| 361 | } |
| 362 | |
| 363 | /** Find an attribute in this template only. */ |
| 364 |
no test coverage detected