1. /*
  2. * @(#)MethodDeclaration.java 1.2 04/04/20
  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. import com.sun.mirror.type.TypeMirror;
  9. import com.sun.mirror.type.VoidType;
  10. /**
  11. * Represents a method of a class or interface.
  12. * Note that an
  13. * {@linkplain AnnotationTypeElementDeclaration annotation type element}
  14. * is a kind of method.
  15. *
  16. * @author Joseph D. Darcy
  17. * @author Scott Seligman
  18. * @version 1.2 04/04/20
  19. * @since 1.5
  20. */
  21. public interface MethodDeclaration extends ExecutableDeclaration {
  22. /**
  23. * Returns the formal return type of this method.
  24. * Returns {@link VoidType} if this method does not return a value.
  25. *
  26. * @return the formal return type of this method
  27. */
  28. TypeMirror getReturnType();
  29. }