/** * <copyright> * </copyright> * * $Id$ */ package tefkat.engine.runtime.impl; import java.util.Arrays; import java.util.List; import org.eclipse.emf.ecore.EClass; import tefkat.engine.runtime.Binding; import tefkat.engine.runtime.Context; import tefkat.engine.runtime.IntConstant; import tefkat.engine.runtime.NotGroundException; import tefkat.engine.runtime.ResolutionException; import tefkat.engine.runtime.RuntimePackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Int Constant</b></em>'. * <!-- end-user-doc --> * <p> * </p> * * @generated */ public class IntConstantImpl extends SimpleExprImpl implements IntConstant { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final String copyright = "Copyright michael lawley 2004"; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected IntConstantImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EClass eStaticClass() { return RuntimePackage.Literals.INT_CONSTANT; } public List eval(Context context, Binding binding) throws ResolutionException, NotGroundException { return Arrays.asList(new Integer[] {Integer.valueOf(getRepresentation())}); } } //IntConstantImpl