
CompilerRuntime.RuleBackgroundElement Maven / Gradle / Ivy
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);
}
}