@Deprecated public class IndyInterface extends Object
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.
Modifiers | Name | Description |
---|---|---|
enum |
IndyInterface.CallType |
Enum for easy differentiation between call types. |
Modifiers | Name | Description |
---|---|---|
protected static Logger |
LOG |
|
protected static boolean |
LOG_ENABLED |
|
static MethodHandles.Lookup |
LOOKUP |
LOOKUP constant used for example in unreflect calls. |
static int |
SAFE_NAVIGATION |
Flags for method and property calls. |
protected static SwitchPoint |
switchPoint |
Type Params | Return Type | Name and description |
---|---|---|
|
public static CallSite |
bootstrap(MethodHandles.Lookup caller, String callType, MethodType type, String name, int flags) Bootstrap method for method calls from Groovy compiled code with indy enabled. |
|
public static Object |
fromCache(MutableCallSite callSite, Class<?> sender, String methodName, int callID, Boolean safeNavigation, Boolean thisCall, Boolean spreadCall, Object dummyReceiver, Object[] arguments) Get the cached methodhandle. if the related methodhandle is not found in the inline cache, cache and return it. |
|
protected static void |
invalidateSwitchPoints() Callback for constant meta class update change. |
|
public static Object |
selectMethod(MutableCallSite callSite, Class<?> sender, String methodName, int callID, Boolean safeNavigation, Boolean thisCall, Boolean spreadCall, Object dummyReceiver, Object[] arguments) Core method for indy method selection using runtime types. |
|
public static CallSite |
staticArrayAccess(MethodHandles.Lookup lookup, String name, MethodType type)
|
LOOKUP constant used for example in unreflect calls.
Flags for method and property calls.
Bootstrap method for method calls from Groovy compiled code with indy enabled. This method gets a flags parameter which uses the following encoding:
caller
- - the callercallType
- - the type of the calltype
- - the call site typename
- - the real method nameflags
- - call flagsGet the cached methodhandle. if the related methodhandle is not found in the inline cache, cache and return it.
Callback for constant meta class update change.
Core method for indy method selection using runtime types.