blob: d8edbde42d7646563af1dd952c545a04bbb6d89c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2012 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.acceleo.parser.cst;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>If Block</b></em>'. <!-- end-user-doc
* -->
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.acceleo.parser.cst.IfBlock#getIfExpr <em>If Expr</em>}</li>
* <li>{@link org.eclipse.acceleo.parser.cst.IfBlock#getElse <em>Else</em>}</li>
* <li>{@link org.eclipse.acceleo.parser.cst.IfBlock#getElseIf <em>Else If</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.acceleo.parser.cst.CstPackage#getIfBlock()
* @model
* @generated
* @since 3.0
*/
public interface IfBlock extends Block {
/**
* Returns the value of the '<em><b>If Expr</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>If Expr</em>' containment reference isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
*
* @return the value of the '<em>If Expr</em>' containment reference.
* @see #setIfExpr(ModelExpression)
* @see org.eclipse.acceleo.parser.cst.CstPackage#getIfBlock_IfExpr()
* @model containment="true" required="true"
* @generated
*/
ModelExpression getIfExpr();
/**
* Sets the value of the '{@link org.eclipse.acceleo.parser.cst.IfBlock#getIfExpr <em>If Expr</em>}'
* containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param value
* the new value of the '<em>If Expr</em>' containment reference.
* @see #getIfExpr()
* @generated
*/
void setIfExpr(ModelExpression value);
/**
* Returns the value of the '<em><b>Else</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Else</em>' containment reference isn't clear, there really should be more of
* a description here...
* </p>
* <!-- end-user-doc -->
*
* @return the value of the '<em>Else</em>' containment reference.
* @see #setElse(Block)
* @see org.eclipse.acceleo.parser.cst.CstPackage#getIfBlock_Else()
* @model containment="true"
* @generated
*/
Block getElse();
/**
* Sets the value of the '{@link org.eclipse.acceleo.parser.cst.IfBlock#getElse <em>Else</em>}'
* containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @param value
* the new value of the '<em>Else</em>' containment reference.
* @see #getElse()
* @generated
*/
void setElse(Block value);
/**
* Returns the value of the '<em><b>Else If</b></em>' containment reference list. The list contents are of
* type {@link org.eclipse.acceleo.parser.cst.IfBlock}. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Else If</em>' containment reference list isn't clear, there really should be
* more of a description here...
* </p>
* <!-- end-user-doc -->
*
* @return the value of the '<em>Else If</em>' containment reference list.
* @see org.eclipse.acceleo.parser.cst.CstPackage#getIfBlock_ElseIf()
* @model containment="true"
* @generated
*/
EList<IfBlock> getElseIf();
} // IfBlock