Search in sources :

Example 1 with CtBlockImpl

use of spoon.support.reflect.code.CtBlockImpl in project spoon by INRIA.

the class InsertBlockProcessor method process.

@Override
public void process(CtMethod<?> element) {
    CtBlock block = new CtBlockImpl();
    block.getStatements().add(element.getBody());
    element.setBody(block);
}
Also used : CtBlockImpl(spoon.support.reflect.code.CtBlockImpl) CtBlock(spoon.reflect.code.CtBlock)

Aggregations

CtBlock (spoon.reflect.code.CtBlock)1 CtBlockImpl (spoon.support.reflect.code.CtBlockImpl)1