/* PolyIdentifier -- 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 poly identifier. */ public class PolyIdentifier extends ACSLNode { private static final java.util.function.Predicate VALIDATOR = ACSLNode.VALIDATORS.get(PolyIdentifier.class); /** * The identifier of this poly identifier. */ String identifier; /** * The label list of this poly identifier. */ String[] labelList; /** * The var list of this poly identifier. */ String[] varList; /** * The constructor taking initial values. * @param identifier the identifier of this poly identifier. */ public PolyIdentifier(String identifier) { super(); this.identifier = identifier; assert VALIDATOR == null || VALIDATOR.test(this) : "Invalid PolyIdentifier: " + this; } /** * The constructor taking initial values. * @param identifier the identifier of this poly identifier. * @param labelList the label list of this poly identifier. * @param varList the var list of this poly identifier. */ public PolyIdentifier(String identifier, String[] labelList, String[] varList) { super(); this.identifier = identifier; this.labelList = labelList; this.varList = varList; assert VALIDATOR == null || VALIDATOR.test(this) : "Invalid PolyIdentifier: " + this; } /** * Returns a textual description of this object. */ public String toString() { StringBuffer sb = new StringBuffer(); sb.append("PolyIdentifier").append('['); sb.append(identifier); sb.append(','); if (labelList == null) { sb.append("null"); } else { sb.append('['); for(int i1 = 0; i1 < labelList.length; i1++) { if (i1 > 0) sb.append(','); sb.append(labelList[i1]); } sb.append(']'); } sb.append(','); if (varList == null) { sb.append("null"); } else { sb.append('['); for(int i1 = 0; i1 < varList.length; i1++) { if (i1 > 0) sb.append(','); sb.append(varList[i1]); } sb.append(']'); } return sb.append(']').toString(); } /** * Gets the identifier of this poly identifier. * @return the identifier of this poly identifier. */ public String getIdentifier() { return identifier; } /** * Gets the label list of this poly identifier. * @return the label list of this poly identifier. */ public String[] getLabelList() { return labelList; } /** * Gets the var list of this poly identifier. * @return the var list of this poly identifier. */ public String[] getVarList() { return varList; } public List getOutgoingNodes() { List children = super.getOutgoingNodes(); return children; } public void accept(ACSLVisitor visitor) { visitor.visit(this); } public PolyIdentifier accept(ACSLTransformer visitor) { PolyIdentifier node = visitor.transform(this); if(node != this){ return node; } return this; } }