Class Transform

java.lang.Object
com.headius.invokebinder.transform.Transform
Direct Known Subclasses:
Cast, Catch, Collect, Convert, Drop, Filter, FilterReturn, Fold, Insert, Permute, Spread, TryFinally, Varargs

public abstract class Transform extends Object
Abstract reprensentation of some handle transform.
  • Constructor Details

    • Transform

      public Transform()
  • Method Details

    • up

      public abstract MethodHandle up(MethodHandle target)
      Apply this transform upward from the given MethodHandle, producing a new handle.
      Parameters:
      target - the target handle
      Returns:
      the adapted handle
    • down

      public abstract MethodType down(MethodType source)
      Apply this transform downward from an incoming MethodType, producing a new type.
      Parameters:
      source - the source type
      Returns:
      the new type
    • toString

      public abstract String toString()
      Return a string representation of this transform.
      Overrides:
      toString in class Object
      Returns: