[Java] Class ExtensionMethodCache
- 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 Summary
Modifiers | Name | Description |
---|---|---|
static ExtensionMethodCache | INSTANCE |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
protected void |
addAdditionalClassesToScan(Set<Class> instanceExtClasses, Set<Class> staticExtClasses) | |
protected Predicate<MethodNode> |
getMethodFilter() | |
protected Function<MethodNode, String> |
getMethodMapper() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class AbstractExtensionMethodCache | addAdditionalClassesToScan, get, getMethodFilter, getMethodMapper |
Field Detail
public static final ExtensionMethodCache INSTANCE
Method Detail
@Override protected void addAdditionalClassesToScan(Set<Class> instanceExtClasses, Set<Class> staticExtClasses)
@Override protected Predicate<MethodNode> getMethodFilter()
@Override protected Function<MethodNode, String> getMethodMapper()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/transform/stc/ExtensionMethodCache.html