Package org.codehaus.groovy.vmplugin.v7
Class IndyInterface
- java.lang.Object
- 
- org.codehaus.groovy.vmplugin.v7.IndyInterface
 
- 
 @Deprecated public class IndyInterface extends Object Deprecated.Bytecode level interface for bootstrap methods used by invokedynamic. This class provides a logging ability by using the boolean system property groovy.indy.logging. Other than that this class contains the interfacing methods with bytecode for invokedynamic as well as 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 callsstatic intIMPLICIT_THISDeprecated.flags for method and property callsprotected static LoggerLOGDeprecated.Loggerprotected static booleanLOG_ENABLEDDeprecated.boolean to indicate if logging for indy is enabledstatic MethodHandles.LookupLOOKUPDeprecated.LOOKUP constant used for for example unreflect callsstatic intSAFE_NAVIGATIONDeprecated.flags for method and property callsstatic intSPREAD_CALLDeprecated.flags for method and property callsprotected static SwitchPointswitchPointDeprecated.static intTHIS_CALLDeprecated.flags for method and property callsstatic intUNCACHED_CALLDeprecated.flags for method and property calls
 - 
Constructor SummaryConstructors Constructor Description IndyInterface()Deprecated.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 voidinvalidateSwitchPoints()Deprecated.Callback for constant meta class update changeprotected static MethodHandlemakeFallBack(MutableCallSite mc, Class<?> sender, String name, int callID, MethodType type, boolean safeNavigation, boolean thisCall, boolean spreadCall)Deprecated.Makes a fallback method for an invalidated method selectionstatic 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 Detail- 
SAFE_NAVIGATIONpublic static final int SAFE_NAVIGATION Deprecated.flags for method and property calls- See Also:
- Constant Field Values
 
 - 
THIS_CALLpublic static final int THIS_CALL Deprecated.flags for method and property calls- See Also:
- Constant Field Values
 
 - 
GROOVY_OBJECTpublic static final int GROOVY_OBJECT Deprecated.flags for method and property calls- See Also:
- Constant Field Values
 
 - 
IMPLICIT_THISpublic static final int IMPLICIT_THIS Deprecated.flags for method and property calls- See Also:
- Constant Field Values
 
 - 
SPREAD_CALLpublic static final int SPREAD_CALL Deprecated.flags for method and property calls- See Also:
- Constant Field Values
 
 - 
UNCACHED_CALLpublic static final int UNCACHED_CALL Deprecated.flags for method and property calls- See Also:
- Constant Field Values
 
 - 
LOGprotected static final Logger LOG Deprecated.Logger
 - 
LOG_ENABLEDprotected static final boolean LOG_ENABLED Deprecated.boolean to indicate if logging for indy is enabled
 - 
LOOKUPpublic static final MethodHandles.Lookup LOOKUP Deprecated.LOOKUP constant used for for example unreflect calls
 - 
switchPointprotected static SwitchPoint switchPoint Deprecated.
 
- 
 - 
Method Detail- 
invalidateSwitchPointsprotected static void invalidateSwitchPoints() Deprecated.Callback for constant meta class update change
 - 
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:
- Groovy 2.1.0
 
- 1 is the flag value for safe navigation see 
 - 
makeFallBackprotected static MethodHandle makeFallBack(MutableCallSite mc, Class<?> sender, String name, int callID, MethodType type, boolean safeNavigation, boolean thisCall, boolean spreadCall) Deprecated.Makes a fallback method for an invalidated method selection
 - 
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
 
 - 
staticArrayAccesspublic static CallSite staticArrayAccess(MethodHandles.Lookup lookup, String name, MethodType type) Deprecated.- Since:
- 2.5.0
 
 
- 
 
-