org.jamon.logic.IfElseImpl Maven / Gradle / Ivy
// Autogenerated Jamon implementation
// /Users/jay/jamon/jamon-stdlib/src/main/templates/org/jamon/logic/IfElse.jamon
package org.jamon.logic;
// 20, 1
@Deprecated
public class IfElseImpl
extends org.jamon.AbstractTemplateImpl
implements org.jamon.logic.IfElse.Intf
{
private final boolean condition;
private final Fragment_Else Else;
private final Fragment_Then Then;
protected static org.jamon.logic.IfElse.ImplData __jamon_setOptionalArguments(org.jamon.logic.IfElse.ImplData p_implData)
{
return p_implData;
}
public IfElseImpl(org.jamon.TemplateManager p_templateManager, org.jamon.logic.IfElse.ImplData p_implData)
{
super(p_templateManager, __jamon_setOptionalArguments(p_implData));
condition = p_implData.getCondition();
Else = p_implData.getElse();
Then = p_implData.getThen();
}
public void renderNoFlush(@SuppressWarnings({"unused","hiding"}) final java.io.Writer jamonWriter)
throws java.io.IOException
{
// 28, 1
if (condition)
// 29, 1
{
// 30, 1
Then.renderNoFlush(jamonWriter);
// 31, 1
}
// 32, 1
else
// 33, 1
{
// 34, 1
Else.renderNoFlush(jamonWriter);
// 35, 1
}
}
}