Package org.codehaus.groovy.vmplugin.v8
Class IndyGuardsFiltersAndSignatures
java.lang.Object
org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures
This class contains guards, runtime filters and
MethodType signatures used by indy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleConstant handle that always returnsnull.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths.protected static final MethodHandleShared guards, filters, constructors, and invokers used when assembling indy call paths. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectinvokeGroovyObjectInvoker(MissingMethodException e, Object receiver, String name, Object[] args) GroovyObject.invokeMethod(String, Object)path as fallback.static booleanGuard to check if the argument is null.static booleanisSameMetaClass(MetaClass mc, Object receiver) called by handlestatic booleanGuard to check if the provided Object has the same class as the provided Class.static booleansameClasses(Class<?>[] cs, Object[] os) Guard to check if the provided objects have the same class as the provided classes.static ObjectsetBeanProperties(MetaClass mc, Object bean, Map properties) This method is called by the handle to realize the bean constructor with property map.static ObjectUnwraps aGroovyRuntimeException.static ObjectUnwraps aWrapper.
-
Field Details
-
SAME_CLASS
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
SAME_CLASSES
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
SAME_MC
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
IS_NULL
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
NON_NULL
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
UNWRAP_METHOD
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
UNWRAP_EXCEPTION
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
HAS_CATEGORY_IN_CURRENT_THREAD_GUARD
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
GROOVY_OBJECT_INVOKER
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
GROOVY_OBJECT_GET_PROPERTY
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
META_METHOD_INVOKER
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
META_CLASS_INVOKE_METHOD
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
META_CLASS_INVOKE_STATIC_METHOD
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
BEAN_CONSTRUCTOR_PROPERTY_SETTER
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
META_PROPERTY_GETTER
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
SLOW_META_CLASS_FIND
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
MOP_GET
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
MOP_INVOKE_CONSTRUCTOR
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
MOP_INVOKE_METHOD
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
INTERCEPTABLE_INVOKER
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
BOOLEAN_IDENTITY
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
CLASS_FOR_NAME
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
DTT_CAST_TO_TYPE
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
SAM_CONVERSION
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
HASHSET_CONSTRUCTOR
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
ARRAYLIST_CONSTRUCTOR
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
GROOVY_CAST_EXCEPTION
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
EQUALS
Shared guards, filters, constructors, and invokers used when assembling indy call paths. -
NULL_REF
Constant handle that always returnsnull.
-
-
Constructor Details
-
IndyGuardsFiltersAndSignatures
public IndyGuardsFiltersAndSignatures()
-
-
Method Details
-
setBeanProperties
This method is called by the handle to realize the bean constructor with property map. -
invokeGroovyObjectInvoker
public static Object invokeGroovyObjectInvoker(MissingMethodException e, Object receiver, String name, Object[] args) GroovyObject.invokeMethod(String, Object)path as fallback. This method is called by the handle as exception handler in case the selected method causes a MissingMethodExecutionFailed, where we will just give through the exception, and a normal MissingMethodException where we callGroovyObject.invokeMethod(String, Object)if receiver class, the type transported by the exception and the name for the method stored in the exception and our current method name are equal. Should those conditions not apply we just rethrow the exception. -
unwrap
Unwraps aGroovyRuntimeException. This method is called by the handle to unwrap internal exceptions of the runtime.- Throws:
Throwable
-
isSameMetaClass
called by handle -
unwrap
Unwraps aWrapper. This method is called by the handle to unwrap a Wrapper, which we use to force method selection. -
isNull
Guard to check if the argument is null. This method is called by the handle to check if the provided argument is null. -
sameClass
Guard to check if the provided Object has the same class as the provided Class. This method will return false if the Object is null. -
sameClasses
Guard to check if the provided objects have the same class as the provided classes.
-