Interface ResolvedMethodDeclaration

All Superinterfaces:
AssociableToAST, HasAccessSpecifier, ResolvedDeclaration, ResolvedMethodLikeDeclaration, ResolvedTypeParametrizable
All Known Implementing Classes:
JavaParserEnumDeclaration.ValueOfMethod, JavaParserEnumDeclaration.ValuesMethod, JavaParserMethodDeclaration, JavaParserRecordDeclaration.ImplicitGetterMethod, JavassistMethodDeclaration, ReflectionMethodDeclaration

public interface ResolvedMethodDeclaration extends ResolvedMethodLikeDeclaration
A declaration of a method (either in an interface, a class, an enum or an annotation).
  • Method Details

    • getReturnType

      ResolvedType getReturnType()
      The type of the value returned by the current method. This method can also be invoked for methods returning void.
    • isAbstract

      boolean isAbstract()
      Is the method abstract? All interface methods not marked as default are abstract.
    • isDefaultMethod

      boolean isDefaultMethod()
      Is this a default method?
    • isStatic

      boolean isStatic()
    • toDescriptor

      String toDescriptor()
    • isReturnTypeSubstituable

      default boolean isReturnTypeSubstituable(ResolvedType otherResolvedType)