blob: af5844dbffe0b37f30cb2bccc1c4c33b9891778c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015, 2016 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* E.D.Willink - Initial API and implementation
*******************************************************************************/
package org.eclipse.qvtd.compiler.internal.qvtp2qvts;
import org.eclipse.jdt.annotation.NonNull;
/**
* NodeRole defines which of many possible roles an node plays
*/
public interface NodeRole extends Role
{
@NonNull NodeRole asPhase(@NonNull Phase phase);
@NonNull NodeRole asPredicated();
@NonNull NodeRole asSpeculated();
@NonNull NodeRole asSpeculation();
@NonNull String getFillColor();
/**
* Return the merged role combining this role and nodeRole.
*/
@NonNull NodeRole merge(@NonNull NodeRole nodeRole);
}