blob: ba5436ca808ec16216b3118bdf57427d6e6048c9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2019 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.qvtd.pivot.qvtrelation.utilities;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.ocl.pivot.OCLExpression;
import org.eclipse.ocl.pivot.internal.manager.FlowAnalysis;
public class QVTrelationFlowAnalysis extends FlowAnalysis
{
public QVTrelationFlowAnalysis(@NonNull QVTrEnvironmentFactory environmentFactory, @NonNull OCLExpression contextExpression) {
super(environmentFactory, contextExpression);
}
@Override
protected @NonNull AbstractDeducer createDeducerFromFalse() {
return new QVTrelationFlowAnalysisDeducerFromFalseVisitor(this);
}
@Override
protected @NonNull AbstractDeducer createDeducerFromNull(boolean isNull) {
return new QVTrelationFlowAnalysisDeducerFromNullVisitor(this, isNull);
}
@Override
protected @NonNull AbstractDeducer createDeducerFromTrue() {
return new QVTrelationFlowAnalysisDeducerFromTrueVisitor(this);
}
}