Module java.base

Class MethodHandles


public class MethodHandles extends Object
This class consists exclusively of static methods that operate on or return method handles. They fall into several categories:
  • Lookup methods which help create method handles for methods and fields.
  • Combinator methods, which combine or transform pre-existing method handles into new ones.
  • Other factory methods to create method handles that emulate other common JVM operations or control flow patterns.
A lookup, combinator, or factory method will fail and throw an IllegalArgumentException if the created method handle's type would have too many parameters.