1 package spoon.reflect.declaration;2 3 import spoon.reflect.code.CtBlock;4 5 /**6 * This element defines an anonymous executable block declaration in a class.7 * 8 * @see spoon.reflect.declaration.CtClass9 */10 public interface CtAnonymousExecutable extends CtElement, CtModifiable {11 12 /**13 * Gets the executable block.14 * 15 * @return the representation of this executable16 */17 CtBlock getBody();18 19 /**20 * Gets the class that defines this element.21 * 22 * @return owner class23 */24 CtClass getOwnerClass();25 26 /**27 * Sets the executable block.28 * 29 * @param block the representation of this executable30 */31 void setBody(CtBlock block);32 33 }34