Search in sources :

Example 6 with STATEMENT

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;
}
Also used : STATEMENT(spoon.reflect.path.CtRole.STATEMENT) CtStatement(spoon.reflect.code.CtStatement)

Aggregations

CtStatement (spoon.reflect.code.CtStatement)6 STATEMENT (spoon.reflect.path.CtRole.STATEMENT)6