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

Method registerRenderer

output/java/1.4.15/STGroup.java:721–723  ·  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

719 */
720
721 public void registerRenderer(Class<?> attributeType, AttributeRenderer r) {
722 registerRenderer(attributeType, r, true);
723 }
724
725 public void registerRenderer(Class<?> attributeType, AttributeRenderer r, boolean recursive) {
726 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