All Downloads are FREE. Search and download functionalities are using the official Maven repository.

goal.tools.history.explanation.reasons.NoActionNeverEvaluated Maven / Gradle / Ivy

The newest version!
package goal.tools.history.explanation.reasons;

import java.util.Set;

import krTools.parser.SourceInfo;
import languageTools.program.agent.actions.Action;

/**
 * Possible instantiation of a {@link NoActionReason}: rules selecting the
 * action were never evaluated.
 */
public class NoActionNeverEvaluated extends NoActionReason {
	private Set relatedRules;

	public NoActionNeverEvaluated(final Action action) {
		super(action);
	}

	public void setRelatedRules(final Set relatedRules) {
		this.relatedRules = relatedRules;
	}

	@Override
	public String toString() {
		final StringBuilder string = new StringBuilder();
		string.append(this.action).append(" was never executed because the rule(s) possibly selecting the action, ")
				.append(this.relatedRules).append(", were never reached.");
		return string.toString();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy