blob: b0b12ab66e39d7698f1ba2b2b3d8909dcc1e84bf [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014, 2018 CEA LIST and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* E.D.Willink(CEA LIST) - Initial API and implementation
*******************************************************************************/
package org.eclipse.ocl.examples.codegen.cgmodel;
import java.util.List;
import org.eclipse.jdt.annotation.NonNull;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>CG Callable</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A CGConstraint defines a constraint such as a class invariant.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.ocl.examples.codegen.cgmodel.CGCallable#getParameters <em>Parameters</em>}</li>
* <li>{@link org.eclipse.ocl.examples.codegen.cgmodel.CGCallable#getBody <em>Body</em>}</li>
* </ul>
*
* @see org.eclipse.ocl.examples.codegen.cgmodel.CGModelPackage#getCGCallable()
* @generated
*/
public interface CGCallable extends CGValuedElement {
/**
* Returns the value of the '<em><b>Parameters</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.ocl.examples.codegen.cgmodel.CGParameter}.
* It is bidirectional and its opposite is '{@link org.eclipse.ocl.examples.codegen.cgmodel.CGParameter#getCallable <em>Callable</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The parameters of this operation, with 'self' as the first parameter.
* <!-- end-model-doc -->
* @return the value of the '<em>Parameters</em>' containment reference list.
* @see org.eclipse.ocl.examples.codegen.cgmodel.CGModelPackage#getCGCallable_Parameters()
* @see org.eclipse.ocl.examples.codegen.cgmodel.CGParameter#getCallable
* @generated
*/
@NonNull List<CGParameter> getParameters();
/**
* Returns the value of the '<em><b>Body</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Body</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>Body</em>' containment reference.
* @see #setBody(CGValuedElement)
* @see org.eclipse.ocl.examples.codegen.cgmodel.CGModelPackage#getCGCallable_Body()
* @generated
*/
CGValuedElement getBody();
/**
* Sets the value of the '{@link org.eclipse.ocl.examples.codegen.cgmodel.CGCallable#getBody <em>Body</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Body</em>' containment reference.
* @see #getBody()
* @generated
*/
void setBody(CGValuedElement value);
} // CGCallable