예제 #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);
   }
 }