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