Interface MethodList

All Known Implementing Classes:
StdMethodList

public interface MethodList
Interface for lists of methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int n)
    Get the nth method.
    boolean
    Get whether this instance is mutable.
    int
    Get the number of methods in the list.
  • Method Details

    • isMutable

      boolean isMutable()
      Get whether this instance is mutable. Note that the MethodList interface itself doesn't provide any means of mutation, but that doesn't mean that there isn't a non-interface way of mutating an instance.
      Returns:
      true iff this instance is somehow mutable
    • size

      int size()
      Get the number of methods in the list.
      Returns:
      the size
    • get

      Method get(int n)
      Get the nth method.
      Parameters:
      n - n >= 0, n < size(); which method
      Returns:
      non-null; the method in question