/** * Sets the {@code _preexpression} child of this {@link APostOpExp} node. * @param value the new {@code _preexpression} child of this {@link APostOpExp} node */ public void setPreexpression(PExp value) { if( value != null && value.parent() == null) { value.parent(this); } this._preexpression = value; }
/** * Sets the {@code _postexpression} child of this {@link APostOpExp} node. * @param value the new {@code _postexpression} child of this {@link APostOpExp} node */ public void setPostexpression(PExp value) { if( value != null && value.parent() == null) { value.parent(this); } this._postexpression = value; }
/** * Sets the {@code _test} child of this {@link AIfExp} node. * @param value the new {@code _test} child of this {@link AIfExp} node */ public void setTest(PExp value) { if (this._test != null) { this._test.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._test = value; }
/** * Sets the {@code _left} child of this {@link ASameClassExp} node. * @param value the new {@code _left} child of this {@link ASameClassExp} node */ public void setLeft(PExp value) { if (this._left != null) { this._left.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._left = value; }
/** * Sets the {@code _ifExp} child of this {@link AIfStm} node. * @param value the new {@code _ifExp} child of this {@link AIfStm} node */ public void setIfExp(PExp value) { if (this._ifExp != null) { this._ifExp.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._ifExp = value; }
/** * Sets the {@code _expression} child of this {@link ADefExp} node. * @param value the new {@code _expression} child of this {@link ADefExp} node */ public void setExpression(PExp value) { if (this._expression != null) { this._expression.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._expression = value; }
/** * Sets the {@code _cexp} child of this {@link ACaseAlternative} node. * @param value the new {@code _cexp} child of this {@link ACaseAlternative} node */ public void setCexp(PExp value) { if (this._cexp != null) { this._cexp.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._cexp = value; }
/** * Sets the {@code _result} child of this {@link ACaseAlternative} node. * @param value the new {@code _result} child of this {@link ACaseAlternative} node */ public void setResult(PExp value) { if (this._result != null) { this._result.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._result = value; }
/** * Sets the {@code _test} child of this {@link AEqualsDefinition} node. * @param value the new {@code _test} child of this {@link AEqualsDefinition} node */ public void setTest(PExp value) { if (this._test != null) { this._test.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._test = value; }
/** * Sets the {@code _first} child of this {@link ASetCompSetExp} node. * @param value the new {@code _first} child of this {@link ASetCompSetExp} node */ public void setFirst(PExp value) { if (this._first != null) { this._first.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._first = value; }
/** * Sets the {@code _first} child of this {@link ASeqCompSeqExp} node. * @param value the new {@code _first} child of this {@link ASeqCompSeqExp} node */ public void setFirst(PExp value) { if (this._first != null) { this._first.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._first = value; }
/** * Sets the {@code _exp} child of this {@link ACasesStm} node. * @param value the new {@code _exp} child of this {@link ACasesStm} node */ public void setExp(PExp value) { if (this._exp != null) { this._exp.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._exp = value; }
/** * Sets the {@code _suchThat} child of this {@link ALetBeStStm} node. * @param value the new {@code _suchThat} child of this {@link ALetBeStStm} node */ public void setSuchThat(PExp value) { if (this._suchThat != null) { this._suchThat.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._suchThat = value; }
/** * Sets the {@code _initExpression} child of this {@link AStateDefinition} node. * @param value the new {@code _initExpression} child of this {@link AStateDefinition} node */ public void setInitExpression(PExp value) { if (this._initExpression != null) { this._initExpression.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._initExpression = value; }
/** * Sets the {@code _cexp} child of this {@link ACaseAlternativeStm} node. * @param value the new {@code _cexp} child of this {@link ACaseAlternativeStm} node */ public void setCexp(PExp value) { if (this._cexp != null) { this._cexp.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._cexp = value; }
public static APerSyncDefinition newAPerSyncDefinition( ILexLocation location, ILexNameToken opname, PExp guard) { APerSyncDefinition result = new APerSyncDefinition(); // Definition initialization initDefinition(result, Pass.DEFS, location, opname.getPerName(location), NameScope.GLOBAL); result.setOpname(opname); result.setGuard(guard); if(guard != null) { guard.parent(result); } return result; }