Class MethodList.ForLoadedMethods

All Implemented Interfaces:
Iterable<MethodDescription.InDefinedShape>, Collection<MethodDescription.InDefinedShape>, List<MethodDescription.InDefinedShape>, SequencedCollection<MethodDescription.InDefinedShape>, MethodList<MethodDescription.InDefinedShape>, FilterableList<MethodDescription.InDefinedShape,MethodList<MethodDescription.InDefinedShape>>
Enclosing interface:
MethodList<T extends MethodDescription>

public static class MethodList.ForLoadedMethods extends MethodList.AbstractBase<MethodDescription.InDefinedShape>
A method list implementation that returns all loaded byte code methods (methods and constructors) that are declared for a given type.
  • Field Details

    • methods

      private final List<? extends Method> methods
      The loaded methods that are represented by this method list.
    • constructors

      private final List<? extends Constructor<?>> constructors
      The loaded constructors that are represented by this method list.
  • Constructor Details

    • ForLoadedMethods

      public ForLoadedMethods(Class<?> type)
      Creates a new list for a loaded type. Method descriptions are created on demand.
      Parameters:
      type - The type to be represented by this method list.
    • ForLoadedMethods

      public ForLoadedMethods(Constructor<?>[] constructor, Method[] method)
      Creates a method list that represents the given constructors and methods in their given order. The constructors are assigned the indices before the methods.
      Parameters:
      constructor - The constructors to be represented by the method list.
      method - The methods to be represented by the method list.
    • ForLoadedMethods

      public ForLoadedMethods(List<? extends Constructor<?>> constructors, List<? extends Method> methods)
      Creates a method list that represents the given constructors and methods in their given order. The constructors are assigned the indices before the methods.
      Parameters:
      constructors - The constructors to be represented by the method list.
      methods - The methods to be represented by the method list.
  • Method Details