Package org.codehaus.groovy.vmplugin.v7
Class IndyInterface
java.lang.Object
org.codehaus.groovy.vmplugin.v7.IndyInterface
Deprecated.
Legacy class containing methods called by Groovy 2.5 Indy compiled bytecode.
 Includes the interfacing methods with bytecode for invokedynamic and some helper methods and classes.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Enum for easy differentiation between call types
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intDeprecated.flags for method and property callsstatic final intDeprecated.flags for method and property callsstatic final MethodHandles.LookupDeprecated.LOOKUP constant used for example in unreflect callsstatic final intDeprecated.flags for method and property callsstatic final intDeprecated.flags for method and property callsstatic final intDeprecated.flags for method and property callsstatic final intDeprecated.flags for method and property calls
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic CallSitebootstrap(MethodHandles.Lookup caller, String callType, MethodType type, String name, int flags) Deprecated.bootstrap method for method calls from Groovy compiled code with indy enabled.static ObjectfromCache(MutableCallSite callSite, Class<?> sender, String methodName, int callID, Boolean safeNavigation, Boolean thisCall, Boolean spreadCall, Object dummyReceiver, Object[] arguments) Deprecated.Get the cached methodhandle.protected static voidDeprecated.static ObjectselectMethod(MutableCallSite callSite, Class<?> sender, String methodName, int callID, Boolean safeNavigation, Boolean thisCall, Boolean spreadCall, Object dummyReceiver, Object[] arguments) Deprecated.Core method for indy method selection using runtime types.static CallSitestaticArrayAccess(MethodHandles.Lookup lookup, String name, MethodType type) Deprecated.
- 
Field Details- 
SAFE_NAVIGATIONpublic static final int SAFE_NAVIGATIONDeprecated.flags for method and property calls- See Also:
 
- 
THIS_CALLpublic static final int THIS_CALLDeprecated.flags for method and property calls- See Also:
 
- 
GROOVY_OBJECTpublic static final int GROOVY_OBJECTDeprecated.flags for method and property calls- See Also:
 
- 
IMPLICIT_THISpublic static final int IMPLICIT_THISDeprecated.flags for method and property calls- See Also:
 
- 
SPREAD_CALLpublic static final int SPREAD_CALLDeprecated.flags for method and property calls- See Also:
 
- 
UNCACHED_CALLpublic static final int UNCACHED_CALLDeprecated.flags for method and property calls- See Also:
 
- 
LOOKUPDeprecated.LOOKUP constant used for example in unreflect calls
 
- 
- 
Constructor Details- 
IndyInterfacepublic IndyInterface()Deprecated.
 
- 
- 
Method Details- 
invalidateSwitchPointsDeprecated.Callback for constant meta class update change (legacy API)
- 
bootstrappublic static CallSite bootstrap(MethodHandles.Lookup caller, String callType, MethodType type, String name, int flags) Deprecated.bootstrap method for method calls from Groovy compiled code with indy enabled. This method gets a flags parameter which uses the following encoding:- 1 is the flag value for safe navigation see SAFE_NAVIGATION
- 2 is the flag value for a call on this see THIS_CALL
 - Parameters:
- caller- - the caller
- callType- - the type of the call
- type- - the call site type
- name- - the real method name
- flags- - call flags
- Returns:
- the produced CallSite
- Since:
- 2.1.0
 
- 1 is the flag value for safe navigation see 
- 
fromCachepublic static Object fromCache(MutableCallSite callSite, Class<?> sender, String methodName, int callID, Boolean safeNavigation, Boolean thisCall, Boolean spreadCall, Object dummyReceiver, Object[] arguments) throws Throwable Deprecated.Get the cached methodhandle. if the related methodhandle is not found in the inline cache, cache and return it.- Throws:
- Throwable
 
- 
selectMethodpublic static Object selectMethod(MutableCallSite callSite, Class<?> sender, String methodName, int callID, Boolean safeNavigation, Boolean thisCall, Boolean spreadCall, Object dummyReceiver, Object[] arguments) throws Throwable Deprecated.Core method for indy method selection using runtime types.- Throws:
- Throwable
 
- 
staticArrayAccessDeprecated.- Since:
- 2.5.0
 
 
-