Interface ExecutableDeclaration

All Superinterfaces:
AnnotationTarget, Declaration, Element, MemberDeclaration, NamedElement, TypeParameterDeclarator
All Known Subinterfaces:
ConstructorDeclaration, MethodDeclaration, MutableConstructorDeclaration, MutableExecutableDeclaration, MutableMethodDeclaration

@Beta public interface ExecutableDeclaration extends TypeParameterDeclarator
A common super type for MethodDeclaration and ConstructorDeclaration
Author:
Sven Efftinge
  • Method Details

    • isVarArgs

      boolean isVarArgs()
      Returns:
      whether this is a varArs declaration.
    • getBody

      Expression getBody()
      Returns:
      the body, might be null for external elements as well as abstract methods.
    • getParameters

      Iterable<? extends ParameterDeclaration> getParameters()
      Returns:
      the declared parameters
    • getExceptions

      Iterable<? extends TypeReference> getExceptions()
      Returns:
      the declared exceptions