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

Method registerRenderer

output/java8/1.4.16/STGroup.java:719–721  ·  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

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

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected