org.jamon.logic.IfElseImpl Maven / Gradle / Ivy
The newest version!
// Autogenerated Jamon implementation
// /home/ian/svn/jamon-trunk/jamon/jamon-stdlib/target/checkout/src/main/templates/org/jamon/logic/IfElse.jamon
package org.jamon.logic;
// 6, 1
@Deprecated
public class IfElseImpl
extends org.jamon.AbstractTemplateImpl
implements org.jamon.logic.IfElse.Intf
{
private final boolean condition;
private final org.jamon.logic.IfElse.Fragment_Else Else;
private final org.jamon.logic.IfElse.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();
}
@Override public void renderNoFlush(final java.io.Writer jamonWriter)
throws java.io.IOException
{
// 14, 1
if (condition)
// 15, 1
{
// 16, 1
Then.renderNoFlush(jamonWriter);
// 17, 1
}
// 18, 1
else
// 19, 1
{
// 20, 1
Else.renderNoFlush(jamonWriter);
// 21, 1
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy