public class CacheableCallSite extends MutableCallSite
Represents a cacheable call site, which can reduce the cost of resolving methods
Constructor and description |
---|
CacheableCallSite
(MethodType type) |
Type Params | Return Type | Name and description |
---|---|---|
|
public MethodHandleWrapper |
getAndPut(String className, org.codehaus.groovy.runtime.memoize.MemoizeCache.ValueProvider<? super String, ? extends MethodHandleWrapper> valueProvider) |
|
public MethodHandle |
getDefaultTarget() |
|
public MethodHandle |
getFallbackTarget() |
|
public long |
incrementFallbackCount() |
|
public MethodHandleWrapper |
put(String name, MethodHandleWrapper mhw) |
|
protected boolean |
removeEldestEntry(Map.Entry eldest) |
|
public void |
resetFallbackCount() |
|
public void |
setDefaultTarget(MethodHandle defaultTarget) |
|
public void |
setFallbackTarget(MethodHandle fallbackTarget) |
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.