Class ExtensionMethodCache
java.lang.Object
org.codehaus.groovy.transform.stc.AbstractExtensionMethodCache
org.codehaus.groovy.transform.stc.ExtensionMethodCache
public class ExtensionMethodCache extends AbstractExtensionMethodCache
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 SummaryFields Modifier and Type Field Description static ExtensionMethodCacheINSTANCE
- 
Method SummaryModifier and Type Method Description protected voidaddAdditionalClassesToScan(java.util.Set<java.lang.Class> instanceExtClasses, java.util.Set<java.lang.Class> staticExtClasses)protected java.util.function.Predicate<MethodNode>getMethodFilter()protected java.util.function.Function<MethodNode,java.lang.String>getMethodMapper()Methods inherited from class org.codehaus.groovy.transform.stc.AbstractExtensionMethodCachegetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
INSTANCE
 
- 
- 
Method Details- 
addAdditionalClassesToScanprotected void addAdditionalClassesToScan(java.util.Set<java.lang.Class> instanceExtClasses, java.util.Set<java.lang.Class> staticExtClasses)- Specified by:
- addAdditionalClassesToScanin class- AbstractExtensionMethodCache
 
- 
getMethodFilter- Specified by:
- getMethodFilterin class- AbstractExtensionMethodCache
 
- 
getMethodMapper- Specified by:
- getMethodMapperin class- AbstractExtensionMethodCache
 
 
-