Class ImplJIf

All Implemented Interfaces:
BlockContent, JBlock, JCommentable, JIf, JStatement, Writable

class ImplJIf extends ConditionJBlock implements JIf
  • Field Details

  • Constructor Details

  • Method Details

    • _else

      public JBlock _else()
      Description copied from interface: JIf
      Get the else condition block.
      Specified by:
      _else in interface JIf
      Returns:
      the else block
    • elseIf

      public JIf elseIf(JExpr cond)
      Description copied from interface: JIf
      Add an if statement to the else block.
      Specified by:
      elseIf in interface JIf
      Parameters:
      cond - the subsequent if condition
      Returns:
      the subsequent if statement
    • write

      public void write(SourceFileWriter writer) throws IOException
      Specified by:
      write in interface Writable
      Overrides:
      write in class BasicJBlock
      Throws:
      IOException