/**
* <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.BooleanConstant;
import tefkat.engine.runtime.Context;
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>Boolean Constant</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public class BooleanConstantImpl extends SimpleExprImpl implements BooleanConstant {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = "Copyright michael lawley 2004";
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected BooleanConstantImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EClass eStaticClass() {
return RuntimePackage.Literals.BOOLEAN_CONSTANT;
}
public List eval(Context context, Binding binding) throws ResolutionException, NotGroundException {
return Arrays.asList(new Boolean[] {Boolean.valueOf(getRepresentation())});
}
public String toString() {
return getRepresentation();
}
} //BooleanConstantImpl