Interface MutableMethodDeclaration

All Superinterfaces:
AnnotationTarget, Declaration, Element, ExecutableDeclaration, MemberDeclaration, MethodDeclaration, MutableAnnotationTarget, MutableDeclaration, MutableElement, MutableExecutableDeclaration, MutableMemberDeclaration, MutableNamedElement, MutableTypeParameterDeclarator, NamedElement, TypeParameterDeclarator

@Beta public interface MutableMethodDeclaration extends MutableExecutableDeclaration, MethodDeclaration
Author:
Sven Efftinge
  • Method Details

    • setReturnType

      void setReturnType(TypeReference type)
      Parameters:
      type - the return type of this method, must be not null
      Throws:
      IllegalArgumentException - if the type is null
    • setStatic

      void setStatic(boolean isStatic)
      Parameters:
      isStatic - whether this method declaration is static
    • setFinal

      void setFinal(boolean isFinal)
      Parameters:
      isFinal - whether this method declaration is final
    • setStrictFloatingPoint

      void setStrictFloatingPoint(boolean isStrictFloatingPoint)
      Parameters:
      isStrictFloatingPoint - whether this method declaration is strictfp
    • setNative

      void setNative(boolean isNative)
      Parameters:
      isNative - whether this method declaration is native
    • setAbstract

      void setAbstract(boolean isAbstract)
      Parameters:
      isAbstract - whether this method declaration is abstract
    • setSynchronized

      void setSynchronized(boolean isSynchronized)
      Parameters:
      isSynchronized - whether this method declaration is synchronized
    • setDefault

      void setDefault(boolean isDefault)
      Parameters:
      isDefault - whether this method declaration is default