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

Method registerRenderer

output/java/1.4.13/STGroup.java:707–709  ·  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

705 */
706
707 public void registerRenderer(Class<?> attributeType, AttributeRenderer r) {
708 registerRenderer(attributeType, r, true);
709 }
710
711 public void registerRenderer(Class<?> attributeType, AttributeRenderer r, boolean recursive) {
712 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