//generated by abstract-syntax-gen package de.peeeq.wurstscript.jassIm; import java.util.*; @SuppressWarnings({"cast", "unused", "rawtypes"}) class ImNoExprImpl implements ImNoExpr{ ImNoExprImpl() { } private Element parent; public Element getParent() { return parent; } public void setParent(Element parent) { if (parent != null && this.parent != null) { throw new Error("Cannot change parent of element " + this.getClass().getSimpleName() + ", as it is already used in another tree." + "Use the copy method to create a new tree or remove the tree from its old parent or set the parent to null before moving the tree. "); } this.parent = parent; } public void replaceBy(Element other) { if (parent == null) throw new RuntimeException("Node not attached to tree."); for (int i=0; i action) { } public int size() { return 0; } @Override public ImNoExpr copy() { ImNoExpr result = new ImNoExprImpl(); return result; } @Override public ImNoExpr copyWithRefs() { ImNoExpr res = copy(); return res; } @Override public void clearAttributes() { clearAttributesLocal(); } @Override public void clearAttributesLocal() { } @Override public void accept(Visitor v) { v.visit(this); } @Override public T match(ImExprOpt.Matcher matcher) { return matcher.case_ImNoExpr(this); } @Override public void match(ImExprOpt.MatcherVoid matcher) { matcher.case_ImNoExpr(this); } @Override public T match(ImPrintable.Matcher matcher) { return matcher.case_ImNoExpr(this); } @Override public void match(ImPrintable.MatcherVoid matcher) { matcher.case_ImNoExpr(this); } @Override public T match(ImFlatExprOpt.Matcher matcher) { return matcher.case_ImNoExpr(this); } @Override public void match(ImFlatExprOpt.MatcherVoid matcher) { matcher.case_ImNoExpr(this); } @Override public T match(Element.Matcher matcher) { return matcher.case_ImNoExpr(this); } @Override public void match(Element.MatcherVoid matcher) { matcher.case_ImNoExpr(this); } public boolean structuralEquals(Element e) { return e instanceof ImNoExpr; } /** */ public void print(java.lang.Appendable sb, int indent) { de.peeeq.wurstscript.translation.imtranslation.ImPrinter.print((ImNoExpr)this, sb, indent); } /** */ public String toString() { return de.peeeq.wurstscript.translation.imtranslation.ImPrinter.asString((ImNoExpr)this); } /** */ public ImFunction getNearestFunc() { return de.peeeq.wurstscript.translation.imtojass.ImAttributes.getNearestFunc((ImNoExpr)this); } /** */ public de.peeeq.wurstscript.ast.Element attrTrace() { return de.peeeq.wurstscript.translation.imtojass.ImAttributes.getTrace((ImNoExpr)this); } /** */ public ImProg attrProg() { return de.peeeq.wurstscript.translation.imtojass.ImAttributes.getProg((ImNoExpr)this); } }