Пример #1
0
  public DiffIfStatement(IfStatement stmt) {
    super(stmt);

    stmt.getExpression().accept(ExpressionVisitor.getExpressionVisitor());
    this.expression = ExpressionVisitor.getExpressionVisitor().getExpression();

    stmt.getThenStatement().accept(StatementVisitor.getStatementVisitor());
    this.thenStatement = StatementVisitor.getStatementVisitor().getStatement();

    if (stmt.getElseStatement() != null) {
      stmt.getElseStatement().accept(StatementVisitor.getStatementVisitor());
      this.elseStatement = StatementVisitor.getStatementVisitor().getStatement();
    }
  }