blob: 9198fe2a0f96eb39879073d7d56c4edf61b53b09 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2012 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.moka.fuml.Semantics.impl.Classes.Kernel;
import org.eclipse.uml2.uml.LiteralInteger;
public class LiteralIntegerEvaluation extends LiteralEvaluation {
@Override
public Value evaluate() {
// Evaluate a literal integer, producing an integer value.
LiteralInteger literal = (LiteralInteger) specification;
IntegerValue integerValue = new IntegerValue();
integerValue.type = this.getType("Integer");
integerValue.value = literal.integerValue();
return integerValue;
}
}