MCPcopy Create free account
hub / github.com/antlr/codebuff / registerRenderer

Method registerRenderer

output/java8/1.4.15/STGroup.java:718–720  ·  view source on GitHub ↗

Register a renderer for all objects of a particular "kind" for all templates evaluated relative to this group. Use r to render if object in question is an instance of attributeType. Recursively set renderer into all import groups.

(Class<?> attributeType, AttributeRenderer r)

Source from the content-addressed store, hash-verified

716 */
717
718 public void registerRenderer(Class<?> attributeType, AttributeRenderer r) {
719 registerRenderer(attributeType, r, true);
720 }
721
722 public void registerRenderer(Class<?> attributeType, AttributeRenderer r, boolean recursive) {
723 if ( attributeType.isPrimitive() ) {

Callers

nothing calls this directly

Calls 4

putMethod · 0.65
isPrimitiveMethod · 0.45
getSimpleNameMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected