Class Transform
- java.lang.Object
-
- com.headius.invokebinder.transform.Transform
-
-
Constructor Summary
Constructors Constructor Description Transform()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.invoke.MethodType
down(java.lang.invoke.MethodType source)
Apply this transform downward from an incoming MethodType, producing a new type.abstract java.lang.String
toString()
Return a string representation of this transform.abstract java.lang.invoke.MethodHandle
up(java.lang.invoke.MethodHandle target)
Apply this transform upward from the given MethodHandle, producing a new handle.
-
-
-
Method Detail
-
up
public abstract java.lang.invoke.MethodHandle up(java.lang.invoke.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 java.lang.invoke.MethodType down(java.lang.invoke.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 java.lang.String toString()
Return a string representation of this transform.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representation of this transform
-
-