/* Event -- Automatically generated by TreeBuilder (2024-10-27T16:48Z) */ package de.uni_freiburg.informatik.ultimate.crocotta.ast; import java.util.List; /** * Represents a event which is a special form of a language expression. */ public class Event extends LanguageExpression { private static final long serialVersionUID = 1L; private static final java.util.function.Predicate VALIDATOR = CrocottaQuery.VALIDATORS.get(Event.class); /** * The name of this event. */ String name; /** * The constructor taking initial values. * @param name the name of this event. */ public Event(String name) { super(); this.name = name; assert VALIDATOR == null || VALIDATOR.test(this) : "Invalid Event: " + this; } /** * Returns a textual description of this object. */ public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Event").append('['); sb.append(name); return sb.append(']').toString(); } /** * Gets the name of this event. * @return the name of this event. */ public String getName() { return name; } public List getOutgoingNodes() { List children = super.getOutgoingNodes(); return children; } public void accept(CrocottaAstVisitor visitor) { if (visitor.visit((LanguageExpression)this)) { //visit parent types higher up if necessary } else { return; } visitor.visit(this); } public LanguageExpression accept(CrocottaAstTransformer visitor) { LanguageExpression node = visitor.transform(this); if(node != this){ return node; } return this; } }