MCPcopy Index your code
hub / github.com/antlr/codebuff / rawSetAttribute

Method rawSetAttribute

output/java8/1.4.15/ST.java:354–364  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 5

rot_mapMethod · 0.95
rot_map_iteratorMethod · 0.95
zip_mapMethod · 0.95
setDefaultArgumentsMethod · 0.95
storeArgsMethod · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected