Class CacheableCallSite


  • public class CacheableCallSite
    extends MutableCallSite
    Represents a cacheable call site, which can reduce the cost of resolving methods
    Since:
    3.0.0
    • Constructor Detail

      • CacheableCallSite

        public CacheableCallSite​(MethodType type)
    • Method Detail

      • getAndPut

        public org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper getAndPut​(String className,
                                                                             MemoizeCache.ValueProvider<? super String,​? extends org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper> valueProvider)
      • put

        public org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper put​(String name,
                                                                       org.codehaus.groovy.vmplugin.v8.MethodHandleWrapper mhw)
      • incrementFallbackCount

        public long incrementFallbackCount()
      • resetFallbackCount

        public void resetFallbackCount()
      • setDefaultTarget

        public void setDefaultTarget​(MethodHandle defaultTarget)
      • getFallbackTarget

        public MethodHandle getFallbackTarget()
      • setFallbackTarget

        public void setFallbackTarget​(MethodHandle fallbackTarget)