1. /*
  2. * @(#)MemberDeclaration.java 1.1 04/01/26
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.mirror.declaration;
  8. /**
  9. * Represents a declaration that may be a member or constructor of a declared
  10. * type. This includes fields, constructors, methods, and (since they
  11. * may be nested) declared types themselves.
  12. *
  13. * @author Joseph D. Darcy
  14. * @author Scott Seligman
  15. * @version 1.1 04/01/26
  16. * @since 1.5
  17. */
  18. public interface MemberDeclaration extends Declaration {
  19. /**
  20. * Returns the type declaration within which this member or constructor
  21. * is declared.
  22. * If this is the declaration of a top-level type (a non-nested class
  23. * or interface), returns null.
  24. *
  25. * @return the type declaration within which this member or constructor
  26. * is declared, or null if there is none
  27. */
  28. TypeDeclaration getDeclaringType();
  29. }