Interface MethodHolder<O extends JavaType<O>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Method<O,​?> getMethod​(java.lang.String name)
      Return the Method with the given name and zero parameters; otherwise return null.
      Method<O,​?> getMethod​(java.lang.String name, java.lang.Class<?>... paramTypes)
      Return the Method with the given name and signature types; otherwise return null.
      Method<O,​?> getMethod​(java.lang.String name, java.lang.String... paramTypes)
      Return the Method with the given name and signature types; otherwise return null.
      java.util.List<? extends Method<O,​?>> getMethods()
      Get a List of all Methods declared by this MethodHolder instance, if any; otherwise, return an empty List
      boolean hasMethod​(Method<O,​?> name)
      Return true if this MethodHolder has a method with the given name and zero parameters; otherwise return false.
      boolean hasMethodSignature​(java.lang.String name)
      Return true if this MethodHolder has a method with the given name and zero parameters; otherwise return false.
      boolean hasMethodSignature​(java.lang.String name, java.lang.Class<?>... paramTypes)
      Return true if this MethodHolder has a method with the given name and signature types; otherwise return false.
      boolean hasMethodSignature​(java.lang.String name, java.lang.String... paramTypes)
      Return true if this MethodHolder has a method with the given name and signature types; otherwise return false.
      boolean hasMethodSignature​(Method<?,​?> method)
      Return true if this MethodHolder has a method with signature matching the given method's signature.
    • Method Detail

      • hasMethod

        boolean hasMethod​(Method<O,​?> name)
        Return true if this MethodHolder has a method with the given name and zero parameters; otherwise return false.
      • hasMethodSignature

        boolean hasMethodSignature​(Method<?,​?> method)
        Return true if this MethodHolder has a method with signature matching the given method's signature.
      • hasMethodSignature

        boolean hasMethodSignature​(java.lang.String name)
        Return true if this MethodHolder has a method with the given name and zero parameters; otherwise return false.
      • hasMethodSignature

        boolean hasMethodSignature​(java.lang.String name,
                                   java.lang.String... paramTypes)
        Return true if this MethodHolder has a method with the given name and signature types; otherwise return false.
      • hasMethodSignature

        boolean hasMethodSignature​(java.lang.String name,
                                   java.lang.Class<?>... paramTypes)
        Return true if this MethodHolder has a method with the given name and signature types; otherwise return false.
      • getMethod

        Method<O,​?> getMethod​(java.lang.String name)
        Return the Method with the given name and zero parameters; otherwise return null.
      • getMethod

        Method<O,​?> getMethod​(java.lang.String name,
                                    java.lang.String... paramTypes)
        Return the Method with the given name and signature types; otherwise return null.
      • getMethod

        Method<O,​?> getMethod​(java.lang.String name,
                                    java.lang.Class<?>... paramTypes)
        Return the Method with the given name and signature types; otherwise return null.
      • getMethods

        java.util.List<? extends Method<O,​?>> getMethods()
        Get a List of all Methods declared by this MethodHolder instance, if any; otherwise, return an empty List