Package 

Interface MethodList

  • All Implemented Interfaces:
    kotlin.collections.Collection , kotlin.collections.Iterable , kotlin.collections.List

    
    public interface MethodList
     implements List<MethodMirror>
                        

    A searchable list of MethodMirrors.

    Note: when used as a List, this object is immutable

    • Method Summary

      Modifier and Type Method Description
      abstract List<MethodMirror> findAll(String name) Returns the methods in this list that have the specified name.
      abstract MethodMirror find(String name, TypeMirror params) Finds the method in this list that has the specified signature, or null if no such method exists.
      abstract MethodMirror findRaw(String name, Class<?> params) Finds the method in this list that has the specified raw signature, or null if no such method exists.
      abstract MethodMirror get(String name, TypeMirror params) Returns the method in this list that has the specified signature, or throws if no such method exists.
      abstract MethodMirror getRaw(String name, Class<?> params) Returns the method in this list that has the specified raw signature, or throws if no such method exists.
      abstract Integer getSize()
      • Methods inherited from class dev.thecodewarrior.mirror.type.MethodList

        contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, spliterator, subList
      • Methods inherited from class kotlin.collections.Collection

        forEach
      • Methods inherited from class kotlin.collections.List

        parallelStream, stream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findAll

         abstract List<MethodMirror> findAll(String name)

        Returns the methods in this list that have the specified name.

        Note: The returned list is immutable.

      • find

         abstract MethodMirror find(String name, TypeMirror params)

        Finds the method in this list that has the specified signature, or null if no such method exists.

      • findRaw

         abstract MethodMirror findRaw(String name, Class<?> params)

        Finds the method in this list that has the specified raw signature, or null if no such method exists.

      • get

         abstract MethodMirror get(String name, TypeMirror params)

        Returns the method in this list that has the specified signature, or throws if no such method exists.

      • getRaw

         abstract MethodMirror getRaw(String name, Class<?> params)

        Returns the method in this list that has the specified raw signature, or throws if no such method exists.