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

io.github.mmm.code.api.block.CodeBlockIf Maven / Gradle / Ivy

There is a newer version: 0.9.10
Show newest version
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.code.api.block;

import io.github.mmm.code.api.copy.CodeNodeItemCopyable;

/**
 * {@link CodeBlock} for an {@code if} block. 
* Syntax:
 * if («{@link #getCondition() condition}») {
 *   «{@link #getStatements() statements}»
 * } {@link #getElse() else} if («{@link #getCondition() condition}») {
 *   «{@link #getStatements() statements}»
 * } {@link #getElse() else} {
 *   «{@link #getStatements() statements}»
 * } 
* * @author hohwille * @since 1.0.0 */ public interface CodeBlockIf extends CodeBlockWithCondition, CodeNodeItemCopyable { /** * @return the next {@code else} ({@code if}) block or {@code null} for none (if the end has been reached). */ CodeBlockIf getElse(); @Override CodeBlockIf copy(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy