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

Method registerRenderer

output/java/1.4.19/STGroup.java:726–728  ·  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

724 */
725
726 public void registerRenderer(Class<?> attributeType, AttributeRenderer r) {
727 registerRenderer(attributeType, r, true);
728 }
729
730 public void registerRenderer(Class<?> attributeType, AttributeRenderer r, boolean recursive) {
731 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