Interface MethodDeclaration

All Superinterfaces:
AnnotationTarget, Declaration, Element, ExecutableDeclaration, MemberDeclaration, NamedElement, TypeParameterDeclarator
All Known Subinterfaces:
MutableMethodDeclaration

@Beta public interface MethodDeclaration extends ExecutableDeclaration
Author:
Sven Efftinge
  • Method Details

    • isFinal

      boolean isFinal()
      Returns:
      whether this method is declared final
    • isAbstract

      boolean isAbstract()
      Returns:
      whether this method is declared abstract
    • isStatic

      boolean isStatic()
      Returns:
      whether this method is declared static
    • isSynchronized

      boolean isSynchronized()
      Returns:
      whether this method is declared synchronized
    • isDefault

      boolean isDefault()
      Returns:
      whether this method is declared default
    • isStrictFloatingPoint

      boolean isStrictFloatingPoint()
      Returns:
      whether this method is declared strictfp
    • isNative

      boolean isNative()
      Returns:
      whether this method is declared native
    • getReturnType

      TypeReference getReturnType()
      Returns:
      the return type of this method
    • getOverriddenOrImplementedMethods

      default Iterable<? extends MethodDeclaration> getOverriddenOrImplementedMethods()
      Returns:
      the overridden or implemented methods
      Since:
      2.23