MCPcopy Create free account
hub / github.com/apache/freemarker / accept

Method accept

src/main/java/freemarker/core/IfBlock.java:76–87  ·  view source on GitHub ↗
(Environment env)

Source from the content-addressed store, hash-verified

74 }
75
76 void accept(Environment env) throws TemplateException, IOException {
77 for (int i = 0; i<nestedElements.size(); i++) {
78 ConditionalBlock cblock = (ConditionalBlock) nestedElements.get(i);
79 Expression condition = cblock.condition;
80 if (condition == null || condition.isTrue(env)) {
81 if (cblock.nestedBlock != null) {
82 env.visit(cblock.nestedBlock);
83 }
84 return;
85 }
86 }
87 }
88
89 public String getCanonicalForm() {
90 StringBuilder buf = new StringBuilder();

Callers

nothing calls this directly

Calls 4

isTrueMethod · 0.95
visitMethod · 0.80
sizeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected