1/******************************************************************************* 2 * Copyright (c) 2009, 2015 Mountainminds GmbH & Co. KG and Contributors 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * Marc R. Hoffmann - initial API and implementation 10 * 11 *******************************************************************************/ 12package org.jacoco.examples.expressions; 13 14public class Const implements IExpression { 15 16 private final double value; 17 18 public Const(final double value) { 19 this.value = value; 20 } 21 22 public double evaluate() { 23 return value; 24 } 25 26} 27