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

CompilerRuntime.RuleBackgroundElement Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
package CompilerRuntime;

import org.coreasm.engine.absstorage.BackgroundElement;
import org.coreasm.engine.absstorage.Element;
import org.coreasm.engine.absstorage.BooleanElement;

public class RuleBackgroundElement extends BackgroundElement {
	public static final String RULE_BACKGROUND_NAME = "RULE";
	
	
	@Override
	public Element getNewValue() {
		throw new UnsupportedOperationException("Cannot create new rule.");
	}

	@Override
	protected Element getValue(Element e) {
		return BooleanElement.valueOf(e instanceof Rule);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy