Package org.codehaus.groovy.vmplugin.v8
Class IndyGuardsFiltersAndSignatures
- java.lang.Object
- 
- org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures
 
- 
 public class IndyGuardsFiltersAndSignatures extends Object This class contains guards, runtime filters and MethodType signatures used by indy.
- 
- 
Field Summary
 - 
Constructor SummaryConstructors Constructor Description IndyGuardsFiltersAndSignatures()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectinvokeGroovyObjectInvoker(MissingMethodException e, Object receiver, String name, Object[] args)GroovyObject.invokeMethod(String, Object)path as fallback.static booleanisNull(Object o)Guard to check if the argument is null.static booleanisSameMetaClass(MetaClass mc, Object receiver)called by handlestatic booleansameClass(Class<?> c, Object o)Guard to check if the provided Object has the same class as the provided Class.static ObjectsetBeanProperties(MetaClass mc, Object bean, Map properties)This method is called by the handle to realize the bean constructor with property map.static Objectunwrap(GroovyRuntimeException gre)Unwraps aGroovyRuntimeException.static Objectunwrap(Object o)Unwraps aWrapper.
 
- 
- 
- 
Field Detail- 
SAME_CLASSprotected static final MethodHandle SAME_CLASS 
 - 
UNWRAP_METHODprotected static final MethodHandle UNWRAP_METHOD 
 - 
SAME_MCprotected static final MethodHandle SAME_MC 
 - 
IS_NULLprotected static final MethodHandle IS_NULL 
 - 
UNWRAP_EXCEPTIONprotected static final MethodHandle UNWRAP_EXCEPTION 
 - 
META_METHOD_INVOKERprotected static final MethodHandle META_METHOD_INVOKER 
 - 
GROOVY_OBJECT_INVOKERprotected static final MethodHandle GROOVY_OBJECT_INVOKER 
 - 
GROOVY_OBJECT_GET_PROPERTYprotected static final MethodHandle GROOVY_OBJECT_GET_PROPERTY 
 - 
HAS_CATEGORY_IN_CURRENT_THREAD_GUARDprotected static final MethodHandle HAS_CATEGORY_IN_CURRENT_THREAD_GUARD 
 - 
BEAN_CONSTRUCTOR_PROPERTY_SETTERprotected static final MethodHandle BEAN_CONSTRUCTOR_PROPERTY_SETTER 
 - 
META_PROPERTY_GETTERprotected static final MethodHandle META_PROPERTY_GETTER 
 - 
SLOW_META_CLASS_FINDprotected static final MethodHandle SLOW_META_CLASS_FIND 
 - 
META_CLASS_INVOKE_STATIC_METHODprotected static final MethodHandle META_CLASS_INVOKE_STATIC_METHOD 
 - 
MOP_GETprotected static final MethodHandle MOP_GET 
 - 
MOP_INVOKE_CONSTRUCTORprotected static final MethodHandle MOP_INVOKE_CONSTRUCTOR 
 - 
MOP_INVOKE_METHODprotected static final MethodHandle MOP_INVOKE_METHOD 
 - 
INTERCEPTABLE_INVOKERprotected static final MethodHandle INTERCEPTABLE_INVOKER 
 - 
CLASS_FOR_NAMEprotected static final MethodHandle CLASS_FOR_NAME 
 - 
BOOLEAN_IDENTITYprotected static final MethodHandle BOOLEAN_IDENTITY 
 - 
DTT_CAST_TO_TYPEprotected static final MethodHandle DTT_CAST_TO_TYPE 
 - 
SAM_CONVERSIONprotected static final MethodHandle SAM_CONVERSION 
 - 
HASHSET_CONSTRUCTORprotected static final MethodHandle HASHSET_CONSTRUCTOR 
 - 
ARRAYLIST_CONSTRUCTORprotected static final MethodHandle ARRAYLIST_CONSTRUCTOR 
 - 
GROOVY_CAST_EXCEPTIONprotected static final MethodHandle GROOVY_CAST_EXCEPTION 
 - 
EQUALSprotected static final MethodHandle EQUALS 
 - 
NULL_REFprotected static final MethodHandle NULL_REF 
 
- 
 - 
Method Detail- 
setBeanPropertiespublic static Object setBeanProperties(MetaClass mc, Object bean, Map properties) This 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.
 - 
unwrappublic static Object unwrap(GroovyRuntimeException gre) throws Throwable Unwraps aGroovyRuntimeException. This method is called by the handle to unwrap internal exceptions of the runtime.- Throws:
- Throwable
 
 - 
isSameMetaClasspublic static boolean isSameMetaClass(MetaClass mc, Object receiver) called by handle
 - 
unwrappublic static Object unwrap(Object o) Unwraps aWrapper. This method is called by the handle to unwrap a Wrapper, which we use to force method selection.
 - 
isNullpublic static boolean isNull(Object o) Guard to check if the argument is null. This method is called by the handle to check if the provided argument is null.
 
- 
 
-