blob: 5eb30d2c61ecc7dc26d53aa77ecaf4c6e5a9aa56 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014, 2018 Willink Transformations 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 - Initial API and implementation
*******************************************************************************/
package org.eclipse.ocl.examples.debug.stepper;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.ocl.examples.debug.vm.evaluator.VMEvaluationStepper;
import org.eclipse.ocl.pivot.Element;
/**
* An ElementStepper provides the non-standard behaviour of stopping before and after execution of an AST node.
*/
public class ElementStepper extends AbstractStepper
{
public static @NonNull ElementStepper INSTANCE = new ElementStepper();
@Override
public boolean isPreStoppable(@NonNull VMEvaluationStepper rootVMEvaluationVisitor, @NonNull Element element) {
return true;
}
}