1 package spoon.reflect.declaration; 2 3 import java.util.List ; 4 import java.util.Set ; 5 6 import spoon.reflect.code.CtBlock; 7 import spoon.reflect.reference.CtExecutableReference; 8 import spoon.reflect.reference.CtTypeReference; 9 10 14 public interface CtExecutable<R> extends CtNamedElement, CtGenericElement, CtTypedElement<R> { 15 16 19 public static final String EXECUTABLE_SEPARATOR = "#"; 20 21 24 CtBlock<R> getBody(); 25 26 29 CtType<?> getDeclaringType(); 30 31 34 List <CtParameter<?>> getParameters(); 35 36 41 CtExecutableReference<R> getReference(); 42 43 47 Set <CtTypeReference<? extends Throwable >> getThrownTypes(); 48 49 52 void setBody(CtBlock<R> body); 53 54 57 void setParameters(List <CtParameter<?>> parameters); 58 59 62 void setThrownTypes(Set <CtTypeReference<? extends Throwable >> thrownTypes); 63 64 } | Popular Tags |