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 SummaryFieldsModifier and TypeFieldDescriptionprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandle
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
SAME_CLASSES
- 
SAME_MC
- 
IS_NULL
- 
NON_NULL
- 
UNWRAP_METHOD
- 
UNWRAP_EXCEPTION
- 
HAS_CATEGORY_IN_CURRENT_THREAD_GUARD
- 
GROOVY_OBJECT_INVOKER
- 
GROOVY_OBJECT_GET_PROPERTY
- 
META_METHOD_INVOKER
- 
META_CLASS_INVOKE_METHOD
- 
META_CLASS_INVOKE_STATIC_METHOD
- 
BEAN_CONSTRUCTOR_PROPERTY_SETTER
- 
META_PROPERTY_GETTER
- 
SLOW_META_CLASS_FIND
- 
MOP_GET
- 
MOP_INVOKE_CONSTRUCTOR
- 
MOP_INVOKE_METHOD
- 
INTERCEPTABLE_INVOKER
- 
BOOLEAN_IDENTITY
- 
CLASS_FOR_NAME
- 
DTT_CAST_TO_TYPE
- 
SAM_CONVERSION
- 
HASHSET_CONSTRUCTOR
- 
ARRAYLIST_CONSTRUCTOR
- 
GROOVY_CAST_EXCEPTION
- 
EQUALS
- 
NULL_REF
 
- 
- 
Constructor Details- 
IndyGuardsFiltersAndSignaturespublic IndyGuardsFiltersAndSignatures()
 
- 
- 
Method Details- 
setBeanPropertiesThis method is called by the handle to realize the bean constructor with property map.
- 
invokeGroovyObjectInvokerpublic 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.
- 
unwrapUnwraps aGroovyRuntimeException. This method is called by the handle to unwrap internal exceptions of the runtime.- Throws:
- Throwable
 
- 
isSameMetaClasscalled by handle
- 
unwrapUnwraps aWrapper. This method is called by the handle to unwrap a Wrapper, which we use to force method selection.
- 
isNullGuard to check if the argument is null. This method is called by the handle to check if the provided argument is null.
- 
sameClassGuard to check if the provided Object has the same class as the provided Class. This method will return false if the Object is null.
- 
sameClassesGuard to check if the provided objects have the same class as the provided classes.
 
-