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 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 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 booleansameClasses(Object[] cs, Object[] os) Deprecated.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
-
META_METHOD_INVOKER
-
GROOVY_OBJECT_INVOKER
-
GROOVY_OBJECT_GET_PROPERTY
-
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
-
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
Deprecated. -
sameClasses
Guard to check if the provided objects have the same class as the provided classes.
-