All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jamon.logic.IfElseImpl Maven / Gradle / Ivy

There is a newer version: 2.4.1
Show newest version
// Autogenerated Jamon implementation
// /home/ian/svn/jamon/jamon/jamon-stdlib/target/checkout/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 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
  {
    // 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
     }
  }
  
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy