APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.reflect

pack-priv Class CsMethodAccessorAdapter

extends MethodAccessorImpl
Class Inheritance
Imports
jdk.internal.vm.annotation.ForceInline, .Hidden, java.lang.reflect.InvocationTargetException, .Method

MethodAccessor adapter for caller-sensitive methods which have an alternate non-CSM method with the same method name but an additional caller class argument. When a caller-sensitive method is called, Method::invoke(Object target, Object[] args, Class caller) will be invoked with the caller class. If an adapter is present, the adapter method with the caller class parameter will be called instead.

Field Summary

Modifier and TypeField and Description
private final MethodAccessor
private final Method

Constructor Summary

AccessConstructor and Description
pack-priv
CsMethodAccessorAdapter(Method method, Method csmAdapter, MethodAccessor accessor)

Method Summary

Modifier and TypeMethod and Description
public Object
public Object

Field Detail

accessorback to summary
private final MethodAccessor accessor
csmAdapterback to summary
private final Method csmAdapter

Constructor Detail

CsMethodAccessorAdapterback to summary
pack-priv CsMethodAccessorAdapter(Method method, Method csmAdapter, MethodAccessor accessor)

Method Detail

invokeback to summary
public Object invoke(Object obj, Object[] args) throws IllegalArgumentException, InvocationTargetException

Implements abstract jdk.internal.reflect.MethodAccessorImpl.invoke.

Implements jdk.internal.reflect.MethodAccessor.invoke.

Doc from jdk.internal.reflect.MethodAccessorImpl.invoke.

Matches specification in java.lang.reflect.Method

Annotations
@Override
invokeback to summary
public Object invoke(Object obj, Object[] args, Class<?> caller) throws IllegalArgumentException, InvocationTargetException

Overrides jdk.internal.reflect.MethodAccessorImpl.invoke.

Implements jdk.internal.reflect.MethodAccessor.invoke.

Annotations
@Override
@ForceInline
@Hidden