use of spoon.reflect.path.CtRole.STATEMENT in project spoon by INRIA.
the class CtCaseImpl method insertBegin.
@Override
public <T extends CtStatementList> T insertBegin(CtStatementList statements) {
this.ensureModifiableStatementsList();
for (CtStatement statement : statements.getStatements()) {
statement.setParent(this);
this.addStatement(0, statement);
}
if (isImplicit() && this.statements.size() > 1) {
setImplicit(false);
}
return (T) this;
}
Aggregations