1 package spoon.reflect.code; 2 3 import java.util.List ; 4 5 import spoon.reflect.visitor.Filter; 6 import spoon.template.TemplateParameter; 7 8 14 public interface CtBlock<R> extends CtStatement, TemplateParameter<R> { 15 16 19 void insertBegin(CtStatement statement); 20 21 24 void insertBegin(CtStatementList<?> statements); 25 26 29 void insertEnd(CtStatement statement); 30 31 34 void insertEnd(CtStatementList<?> statements); 35 36 40 void insertBefore(Filter<? extends CtStatement> insertionPoints, 41 CtStatement statement); 42 43 47 void insertBefore(Filter<? extends CtStatement> insertionPoints, 48 CtStatementList<?> statements); 49 50 54 void insertAfter(Filter<? extends CtStatement> insertionPoints, 55 CtStatement statement); 56 57 61 void insertAfter(Filter<? extends CtStatement> insertionPoints, 62 CtStatementList<?> statements); 63 64 67 List <CtStatement> getStatements(); 68 69 72 void setStatements(List <CtStatement> statements); 73 74 } 75 | Popular Tags |