/* NotDefinedExpression -- Automatically generated by TreeBuilder (2024-10-27T16:47Z) */ package de.uni_freiburg.informatik.ultimate.model.acsl.ast; import java.util.List; import de.uni_freiburg.informatik.ultimate.model.acsl.ACSLNode; /** * Represents a not defined expression which is a special form of a expression. */ public class NotDefinedExpression extends Expression { private static final java.util.function.Predicate VALIDATOR = ACSLNode.VALIDATORS.get(NotDefinedExpression.class); /** * The constructor taking initial values. */ public NotDefinedExpression() { super(); assert VALIDATOR == null || VALIDATOR.test(this) : "Invalid NotDefinedExpression: " + this; } /** * The constructor taking initial values. * @param type the type of this expression. */ public NotDefinedExpression(ACSLType type) { super(type); assert VALIDATOR == null || VALIDATOR.test(this) : "Invalid NotDefinedExpression: " + this; } /** * Returns a textual description of this object. */ public String toString() { return "NotDefinedExpression"; } public List getOutgoingNodes() { List children = super.getOutgoingNodes(); return children; } public void accept(ACSLVisitor visitor) { if (visitor.visit((Expression)this)) { //visit parent types higher up if necessary } else { return; } if (visitor.visit(this)) { if(type!=null){ type.accept(visitor); } } } public Expression accept(ACSLTransformer visitor) { Expression node = visitor.transform(this); if(node != this){ return node; } ACSLType newtype = null; if(type != null){ newtype = (ACSLType)type.accept(visitor); } if(type != newtype){ return new NotDefinedExpression(newtype); } return this; } }