@Override public void setBody(IASTStatement statement) { assertNotFrozen(); body = statement; if (statement != null) { statement.setParent(this); statement.setPropertyInParent(BODY); } }
@Override public void setThenClause(IASTStatement thenClause) { assertNotFrozen(); this.thenClause = thenClause; if (thenClause != null) { thenClause.setParent(this); thenClause.setPropertyInParent(THEN); } }
@Override public void setInitializerStatement(IASTStatement statement) { assertNotFrozen(); init = statement; if (statement != null) { statement.setParent(this); statement.setPropertyInParent(INITIALIZER); } }
@Override public void setElseClause(IASTStatement elseClause) { assertNotFrozen(); this.elseClause = elseClause; if (elseClause != null) { elseClause.setParent(this); elseClause.setPropertyInParent(ELSE); } }