Пример #1
0
 @Override
 public void setBody(IASTStatement statement) {
   assertNotFrozen();
   body = statement;
   if (statement != null) {
     statement.setParent(this);
     statement.setPropertyInParent(BODY);
   }
 }
Пример #2
0
 @Override
 public void setThenClause(IASTStatement thenClause) {
   assertNotFrozen();
   this.thenClause = thenClause;
   if (thenClause != null) {
     thenClause.setParent(this);
     thenClause.setPropertyInParent(THEN);
   }
 }
Пример #3
0
 @Override
 public void setInitializerStatement(IASTStatement statement) {
   assertNotFrozen();
   init = statement;
   if (statement != null) {
     statement.setParent(this);
     statement.setPropertyInParent(INITIALIZER);
   }
 }
Пример #4
0
 @Override
 public void setElseClause(IASTStatement elseClause) {
   assertNotFrozen();
   this.elseClause = elseClause;
   if (elseClause != null) {
     elseClause.setParent(this);
     elseClause.setPropertyInParent(ELSE);
   }
 }