Top Description Fields Constructors Methods
org.codehaus.groovy.transform.stc

public Class ExtensionMethodCache

extends AbstractExtensionMethodCache
Class Inheritance
Imports
org.codehaus.groovy.ast.MethodNode, org.codehaus.groovy.runtime.DefaultGroovyMethods, .DefaultGroovyStaticMethods, org.codehaus.groovy.runtime.m12n.ExtensionModule, org.codehaus.groovy.vmplugin.VMPluginFactory, java.util.Collections, .Set, java.util.function.Function, .Predicate

This class is used to make extension methods lookup faster. Basically, it will only collect the list of extension methods (see ExtensionModule if the list of extension modules has changed. It avoids recomputing the whole list each time we perform a method lookup.

Field Summary

Modifier and TypeField and Description
public static final ExtensionMethodCache
Inherited from org.codehaus.groovy.transform.stc.AbstractExtensionMethodCache:
cache

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected void
protected Predicate<MethodNode>
protected Function<MethodNode, String>
Inherited from org.codehaus.groovy.transform.stc.AbstractExtensionMethodCache:
get

Field Detail

INSTANCEback to summary
public static final ExtensionMethodCache INSTANCE

Constructor Detail

ExtensionMethodCacheback to summary
private ExtensionMethodCache()

Method Detail

addAdditionalClassesToScanback to summary
protected void addAdditionalClassesToScan(Set<Class<T>> instanceExtClasses, Set<Class<T>> staticExtClasses)

Implements abstract org.codehaus.groovy.transform.stc.AbstractExtensionMethodCache.addAdditionalClassesToScan.

Annotations
@Override
getMethodFilterback to summary
protected Predicate<MethodNode> getMethodFilter()

Implements abstract org.codehaus.groovy.transform.stc.AbstractExtensionMethodCache.getMethodFilter.

Annotations
@Override
getMethodMapperback to summary
protected Function<MethodNode, String> getMethodMapper()

Implements abstract org.codehaus.groovy.transform.stc.AbstractExtensionMethodCache.getMethodMapper.

Annotations
@Override