return forStatement;
}
protected IfStatement processIfStatement(StatementContext context) {
IfStatement ifStatement = createNode(context, IfStatement.class);
ParExpressionContext parExpressionContext = getChild(context, ParExpressionContext.class);
ifStatement.setCondition(processParExpression(parExpressionContext));
List<StatementContext> statementContexts = getChildren(context, StatementContext.class);
if (statementContexts.size() > 0) {
ifStatement.setThenStatement(
getAdapter(StatementAdapter.class).adapt(statementContexts.get(0)));
}
if (statementContexts.size() > 1) {
ifStatement.setElseStatement(
getAdapter(StatementAdapter.class).adapt(statementContexts.get(1)));
}
return ifStatement;
}