public class IndyInterface extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IndyInterface.CALL_TYPES
Enum for easy differentiation between call types
|
Modifier and Type | Field and Description |
---|---|
static int |
GROOVY_OBJECT
flags for method and property calls
|
static int |
IMPLICIT_THIS
flags for method and property calls
|
protected static Logger |
LOG
Logger
|
protected static boolean |
LOG_ENABLED
boolean to indicate if logging for indy is enabled
|
static MethodHandles.Lookup |
LOOKUP
LOOKUP constant used for for example unreflect calls
|
static int |
SAFE_NAVIGATION
flags for method and property calls
|
static int |
SPREAD_CALL
flags for method and property calls
|
protected static SwitchPoint |
switchPoint |
static int |
THIS_CALL
flags for method and property calls
|
static int |
UNCACHED_CALL
flags for method and property calls
|
Constructor and Description |
---|
IndyInterface() |
Modifier and Type | Method and Description |
---|---|
static CallSite |
bootstrap(MethodHandles.Lookup caller,
String name,
MethodType type)
Deprecated.
since Groovy 2.1.0
|
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.
|
static CallSite |
bootstrapCurrent(MethodHandles.Lookup caller,
String name,
MethodType type)
Deprecated.
since Groovy 2.1.0
|
static CallSite |
bootstrapCurrentSafe(MethodHandles.Lookup caller,
String name,
MethodType type)
Deprecated.
since Groovy 2.1.0
|
static CallSite |
bootstrapSafe(MethodHandles.Lookup caller,
String name,
MethodType type)
Deprecated.
since Groovy 2.1.0
|
protected static void |
invalidateSwitchPoints()
Callback for constant meta class update change
|
protected static MethodHandle |
makeFallBack(MutableCallSite mc,
Class<?> sender,
String name,
int callID,
MethodType type,
boolean safeNavigation,
boolean thisCall,
boolean spreadCall)
Makes a fallback method for an invalidated method selection
|
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 final int SAFE_NAVIGATION
public static final int THIS_CALL
public static final int GROOVY_OBJECT
public static final int IMPLICIT_THIS
public static final int SPREAD_CALL
public static final int UNCACHED_CALL
protected static final Logger LOG
protected static final boolean LOG_ENABLED
public static final MethodHandles.Lookup LOOKUP
protected static SwitchPoint switchPoint
protected static void invalidateSwitchPoints()
public static CallSite bootstrap(MethodHandles.Lookup caller, String callType, MethodType type, String name, int flags)
SAFE_NAVIGATION
THIS_CALL
caller
- - the callercallType
- - the type of the calltype
- - the call site typename
- - the real method nameflags
- - call flags@Deprecated public static CallSite bootstrapCurrent(MethodHandles.Lookup caller, String name, MethodType type)
@Deprecated public static CallSite bootstrapCurrentSafe(MethodHandles.Lookup caller, String name, MethodType type)
@Deprecated public static CallSite bootstrap(MethodHandles.Lookup caller, String name, MethodType type)
@Deprecated public static CallSite bootstrapSafe(MethodHandles.Lookup caller, String name, MethodType type)
protected static MethodHandle makeFallBack(MutableCallSite mc, Class<?> sender, String name, int callID, MethodType type, boolean safeNavigation, boolean thisCall, boolean spreadCall)
public static Object selectMethod(MutableCallSite callSite, Class sender, String methodName, int callID, Boolean safeNavigation, Boolean thisCall, Boolean spreadCall, Object dummyReceiver, Object[] arguments) throws Throwable
Throwable