Package org.codehaus.groovy.vmplugin.v7
Class IndyInterface
java.lang.Object
org.codehaus.groovy.vmplugin.v7.IndyInterface
@Deprecated
public class IndyInterface
extends java.lang.Object
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 Classes Modifier and Type Class Description static classIndyInterface.CallTypeDeprecated.Enum for easy differentiation between call types.
- 
Field SummaryFields Modifier and Type Field Description static intGROOVY_OBJECTDeprecated.Flags for method and property calls.static intIMPLICIT_THISDeprecated.Flags for method and property calls.protected static java.util.logging.LoggerLOGDeprecated.protected static booleanLOG_ENABLEDDeprecated.static java.lang.invoke.MethodHandles.LookupLOOKUPDeprecated.LOOKUP constant used for example in unreflect calls.static intSAFE_NAVIGATIONDeprecated.Flags for method and property calls.static intSPREAD_CALLDeprecated.Flags for method and property calls.protected static java.lang.invoke.SwitchPointswitchPointDeprecated.static intTHIS_CALLDeprecated.Flags for method and property calls.static intUNCACHED_CALLDeprecated.Flags for method and property calls.
- 
Constructor SummaryConstructors Constructor Description IndyInterface()Deprecated.
- 
Method SummaryModifier and Type Method Description static java.lang.invoke.CallSitebootstrap(java.lang.invoke.MethodHandles.Lookup caller, java.lang.String callType, java.lang.invoke.MethodType type, java.lang.String name, int flags)Deprecated.Bootstrap method for method calls from Groovy compiled code with indy enabled.static java.lang.ObjectfromCache(java.lang.invoke.MutableCallSite callSite, java.lang.Class<?> sender, java.lang.String methodName, int callID, java.lang.Boolean safeNavigation, java.lang.Boolean thisCall, java.lang.Boolean spreadCall, java.lang.Object dummyReceiver, java.lang.Object[] arguments)Deprecated.Get the cached methodhandle.protected static voidinvalidateSwitchPoints()Deprecated.Callback for constant meta class update change.static java.lang.ObjectselectMethod(java.lang.invoke.MutableCallSite callSite, java.lang.Class<?> sender, java.lang.String methodName, int callID, java.lang.Boolean safeNavigation, java.lang.Boolean thisCall, java.lang.Boolean spreadCall, java.lang.Object dummyReceiver, java.lang.Object[] arguments)Deprecated.Core method for indy method selection using runtime types.static java.lang.invoke.CallSitestaticArrayAccess(java.lang.invoke.MethodHandles.Lookup lookup, java.lang.String name, java.lang.invoke.MethodType type)Deprecated.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
SAFE_NAVIGATIONpublic static final int SAFE_NAVIGATIONDeprecated.Flags for method and property calls.- See Also:
- Constant Field Values
 
- 
THIS_CALLpublic static final int THIS_CALLDeprecated.Flags for method and property calls.- See Also:
- Constant Field Values
 
- 
GROOVY_OBJECTpublic static final int GROOVY_OBJECTDeprecated.Flags for method and property calls.- See Also:
- Constant Field Values
 
- 
IMPLICIT_THISpublic static final int IMPLICIT_THISDeprecated.Flags for method and property calls.- See Also:
- Constant Field Values
 
- 
SPREAD_CALLpublic static final int SPREAD_CALLDeprecated.Flags for method and property calls.- See Also:
- Constant Field Values
 
- 
UNCACHED_CALLpublic static final int UNCACHED_CALLDeprecated.Flags for method and property calls.- See Also:
- Constant Field Values
 
- 
LOGprotected static java.util.logging.Logger LOGDeprecated.
- 
LOG_ENABLEDprotected static final boolean LOG_ENABLEDDeprecated.
- 
LOOKUPpublic static final java.lang.invoke.MethodHandles.Lookup LOOKUPDeprecated.LOOKUP constant used for example in unreflect calls.
- 
switchPointprotected static java.lang.invoke.SwitchPoint switchPointDeprecated.
 
- 
- 
Constructor Details- 
IndyInterfacepublic IndyInterface()Deprecated.
 
- 
- 
Method Details- 
invalidateSwitchPointsprotected static void invalidateSwitchPoints()Deprecated.Callback for constant meta class update change.
- 
bootstrappublic static java.lang.invoke.CallSite bootstrap(java.lang.invoke.MethodHandles.Lookup caller, java.lang.String callType, java.lang.invoke.MethodType type, java.lang.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 java.lang.Object fromCache(java.lang.invoke.MutableCallSite callSite, java.lang.Class<?> sender, java.lang.String methodName, int callID, java.lang.Boolean safeNavigation, java.lang.Boolean thisCall, java.lang.Boolean spreadCall, java.lang.Object dummyReceiver, java.lang.Object[] arguments) throws java.lang.ThrowableDeprecated.Get the cached methodhandle. if the related methodhandle is not found in the inline cache, cache and return it.- Throws:
- java.lang.Throwable
 
- 
selectMethodpublic static java.lang.Object selectMethod(java.lang.invoke.MutableCallSite callSite, java.lang.Class<?> sender, java.lang.String methodName, int callID, java.lang.Boolean safeNavigation, java.lang.Boolean thisCall, java.lang.Boolean spreadCall, java.lang.Object dummyReceiver, java.lang.Object[] arguments) throws java.lang.ThrowableDeprecated.Core method for indy method selection using runtime types.- Throws:
- java.lang.Throwable
 
- 
staticArrayAccesspublic static java.lang.invoke.CallSite staticArrayAccess(java.lang.invoke.MethodHandles.Lookup lookup, java.lang.String name, java.lang.invoke.MethodType type)Deprecated.- Since:
- 2.5.0
 
 
-