1 package polyglot.ast; 2 3 import java.util.List; 4 5 /** 6 * A <code>ClassBody</code> represents the body of a class or interface 7 * declaration or the body of an anonymous class. 8 */ 9 public interface ClassBody extends Term 10 { 11 /** 12 * List of the class's members. 13 * @return A list of {@link polyglot.ast.ClassMember ClassMember}. 14 */ 15 List members(); 16 17 /** 18 * Set the class's members. 19 * @param members A list of {@link polyglot.ast.ClassMember ClassMember}. 20 */ 21 ClassBody members(List members); 22 23 /** 24 * Add a member to the class, returning a new node. 25 */ 26 ClassBody addMember(ClassMember member); 27 } 28