public abstract class MethodHandle

  1. Object
  2. MethodHandle
Deprecated. these classes are used internally for Lambda compatibility

Constructors

public MethodHandle()

Methods

public MethodType type()
public final Object invokeExact(Object... a) throws Throwable
public final Object invoke(Object... a) throws Throwable
public Object invokeWithArguments(Object... a) throws Throwable
public Object invokeWithArguments(List<?> a) throws Throwable
public MethodHandle asType(MethodType a)
public MethodHandle asSpreader(Class<?> a, int b)
public MethodHandle asCollector(Class<?> a, int b)
public MethodHandle asVarargsCollector(Class<?> a)
public boolean isVarargsCollector()
public MethodHandle asFixedArity()
public MethodHandle bindTo(Object a)

Inherited methods

Constructor details

MethodHandle

public MethodHandle()

Method details

type

public MethodType type()

invokeExact

public final Object invokeExact(Object... a) throws Throwable

Throws

Throwable

invoke

public final Object invoke(Object... a) throws Throwable

Throws

Throwable

invokeWithArguments

public Object invokeWithArguments(Object... a) throws Throwable

Throws

Throwable

invokeWithArguments

public Object invokeWithArguments(List<?> a) throws Throwable

Throws

Throwable

asType

public MethodHandle asType(MethodType a)

asSpreader

public MethodHandle asSpreader(Class<?> a, int b)

asCollector

public MethodHandle asCollector(Class<?> a, int b)

asVarargsCollector

public MethodHandle asVarargsCollector(Class<?> a)

isVarargsCollector

public boolean isVarargsCollector()

asFixedArity

public MethodHandle asFixedArity()

bindTo

public MethodHandle bindTo(Object a)