Top Description Inners Fields Constructors Methods
org.codehaus.groovy.vmplugin.v8

pack-priv Class MethodHandleWrapper

extends Object
Class Inheritance
Known Direct Subclasses
org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper.NullMethodHandleWrapper
Imports
java.lang.invoke.MethodHandle, java.util.concurrent.atomic.AtomicLong

Wrap method handles
Since
3.0.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final MethodHandle
private final boolean
private final AtomicLong
private final MethodHandle

Constructor Summary

AccessConstructor and Description
public
MethodHandleWrapper(MethodHandle cachedMethodHandle, MethodHandle targetMethodHandle, boolean canSetTarget)

Method Summary

Modifier and TypeMethod and Description
public MethodHandle
public long
public static MethodHandleWrapper
public MethodHandle
public long
public boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cachedMethodHandleback to summary
private final MethodHandle cachedMethodHandle
canSetTargetback to summary
private final boolean canSetTarget
latestHitCountback to summary
private final AtomicLong latestHitCount
targetMethodHandleback to summary
private final MethodHandle targetMethodHandle

Constructor Detail

MethodHandleWrapperback to summary
public MethodHandleWrapper(MethodHandle cachedMethodHandle, MethodHandle targetMethodHandle, boolean canSetTarget)

Method Detail

getCachedMethodHandleback to summary
public MethodHandle getCachedMethodHandle()
getLatestHitCountback to summary
public long getLatestHitCount()
getNullMethodHandleWrapperback to summary
public static MethodHandleWrapper getNullMethodHandleWrapper()
getTargetMethodHandleback to summary
public MethodHandle getTargetMethodHandle()
incrementLatestHitCountback to summary
public long incrementLatestHitCount()
isCanSetTargetback to summary
public boolean isCanSetTarget()
resetLatestHitCountback to summary
public void resetLatestHitCount()
org.codehaus.groovy.vmplugin.v8 back to summary

private Class MethodHandleWrapper.NullMethodHandleWrapper

extends MethodHandleWrapper
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final MethodHandleWrapper.NullMethodHandleWrapper

Constructor Summary

AccessConstructor and Description
private
NullMethodHandleWrapper(MethodHandle cachedMethodHandle, MethodHandle targetMethodHandle, boolean canSetTarget)

Method Summary

Inherited from org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper:
getCachedMethodHandlegetLatestHitCountgetNullMethodHandleWrappergetTargetMethodHandleincrementLatestHitCountisCanSetTargetresetLatestHitCount

Field Detail

INSTANCEback to summary
public static final MethodHandleWrapper.NullMethodHandleWrapper INSTANCE

Constructor Detail

NullMethodHandleWrapperback to summary
private NullMethodHandleWrapper(MethodHandle cachedMethodHandle, MethodHandle targetMethodHandle, boolean canSetTarget)