Top Description Fields Constructors Methods
org.codehaus.groovy.vmplugin.v7

public Class IndyGuardsFiltersAndSignatures

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
groovy.lang.Closure, .GroovyObject, .GroovyRuntimeException, .MetaClass, .MetaMethod, .MetaObjectProtocol, .MetaProperty, .MissingMethodException, org.codehaus.groovy.GroovyBugError, org.codehaus.groovy.reflection.stdclasses.CachedSAMClass, org.codehaus.groovy.runtime.GroovyCategorySupport, .InvokerHelper, .ScriptBytecodeAdapter, org.codehaus.groovy.runtime.metaclass.MissingMethodExecutionFailed, org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation, .GroovyCastException, org.codehaus.groovy.runtime.wrappers.Wrapper, java.lang.invoke.MethodHandle, .MethodHandles, .MethodType, java.lang.reflect.Method, java.util.ArrayList, .Collection, .HashSet, .Map

Deprecated

This class contains guards, runtime filters and MethodType signatures used by indy.

Field Summary

Modifier and TypeField and Description
private static final MethodType
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
private static final MethodType
private static final MethodType
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
private static final MethodType
private static final MethodType
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
private static final MethodType
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
private static final MethodType
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
private static final MethodType
private static final MethodType
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
protected static final MethodHandle
private static final MethodType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Object
public static boolean
isNull(Object o)

Guard to check if the argument is null.

public static boolean
isSameMetaClass(MetaClass mc, Object receiver)

called by handle

public static boolean
sameClass(Class<?> c, Object o)

Guard to check if the provided Object has the same class as the provided Class.

public static Object
setBeanProperties(MetaClass mc, Object bean, Map<K, V> properties)

This method is called by he handle to realize the bean constructor with property map.

public static Object
public static Object
unwrap(Object o)

Unwraps a Wrapper.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ANO_INVOKERback to summary
private static final MethodType ANO_INVOKER
ARRAYLIST_CONSTRUCTORback to summary
protected static final MethodHandle ARRAYLIST_CONSTRUCTOR
BEAN_CONSTRUCTOR_PROPERTY_SETTERback to summary
protected static final MethodHandle BEAN_CONSTRUCTOR_PROPERTY_SETTER
BOOLEAN_IDENTITYback to summary
protected static final MethodHandle BOOLEAN_IDENTITY
BOUND_INVOKERback to summary
private static final MethodType BOUND_INVOKER
CLASS1_GUARDback to summary
private static final MethodType CLASS1_GUARD
CLASS_FOR_NAMEback to summary
protected static final MethodHandle CLASS_FOR_NAME
DTT_CAST_TO_TYPEback to summary
protected static final MethodHandle DTT_CAST_TO_TYPE
EQUALSback to summary
protected static final MethodHandle EQUALS
GET_INVOKERback to summary
private static final MethodType GET_INVOKER
GRE_GUARDback to summary
private static final MethodType GRE_GUARD
GROOVY_CAST_EXCEPTIONback to summary
protected static final MethodHandle GROOVY_CAST_EXCEPTION
GROOVY_OBJECT_GET_PROPERTYback to summary
protected static final MethodHandle GROOVY_OBJECT_GET_PROPERTY
GROOVY_OBJECT_INVOKERback to summary
protected static final MethodHandle GROOVY_OBJECT_INVOKER
HAS_CATEGORY_IN_CURRENT_THREAD_GUARDback to summary
protected static final MethodHandle HAS_CATEGORY_IN_CURRENT_THREAD_GUARD
HASHSET_CONSTRUCTORback to summary
protected static final MethodHandle HASHSET_CONSTRUCTOR
INTERCEPTABLE_INVOKERback to summary
protected static final MethodHandle INTERCEPTABLE_INVOKER
INVOKERback to summary
private static final MethodType INVOKER
IS_NULLback to summary
protected static final MethodHandle IS_NULL
META_CLASS_INVOKE_STATIC_METHODback to summary
protected static final MethodHandle META_CLASS_INVOKE_STATIC_METHOD
META_METHOD_INVOKERback to summary
protected static final MethodHandle META_METHOD_INVOKER
META_PROPERTY_GETTERback to summary
protected static final MethodHandle META_PROPERTY_GETTER
METACLASS1_GUARDback to summary
private static final MethodType METACLASS1_GUARD
MOP_GETback to summary
protected static final MethodHandle MOP_GET
MOP_INVOKE_CONSTRUCTORback to summary
protected static final MethodHandle MOP_INVOKE_CONSTRUCTOR
MOP_INVOKE_METHODback to summary
protected static final MethodHandle MOP_INVOKE_METHOD
NULL_REFback to summary
protected static final MethodHandle NULL_REF
OBJECT_FILTERback to summary
private static final MethodType OBJECT_FILTER
OBJECT_GUARDback to summary
private static final MethodType OBJECT_GUARD
SAM_CONVERSIONback to summary
protected static final MethodHandle SAM_CONVERSION
SAME_CLASSback to summary
protected static final MethodHandle SAME_CLASS
SAME_MCback to summary
protected static final MethodHandle SAME_MC
SLOW_META_CLASS_FINDback to summary
protected static final MethodHandle SLOW_META_CLASS_FIND
UNWRAP_EXCEPTIONback to summary
protected static final MethodHandle UNWRAP_EXCEPTION
UNWRAP_METHODback to summary
protected static final MethodHandle UNWRAP_METHOD
ZERO_GUARDback to summary
private static final MethodType ZERO_GUARD

Constructor Detail

IndyGuardsFiltersAndSignaturesback to summary
public IndyGuardsFiltersAndSignatures()

Method Detail

invokeGroovyObjectInvokerback to summary
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 call GroovyObject#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.

isNullback to summary
public 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.

isSameMetaClassback to summary
public static boolean isSameMetaClass(MetaClass mc, Object receiver)

called by handle

sameClassback to summary
public static boolean sameClass(Class<?> c, Object o)

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.

setBeanPropertiesback to summary
public static Object setBeanProperties(MetaClass mc, Object bean, Map<K, V> properties)

This method is called by he handle to realize the bean constructor with property map.

unwrapback to summary
public static Object unwrap(GroovyRuntimeException gre) throws Throwable

Unwraps a GroovyRuntimeException. This method is called by the handle to unwrap internal exceptions of the runtime.

unwrapback to summary
public static Object unwrap(Object o)

Unwraps a Wrapper. This method is called by the handle to unwrap a Wrapper, which we use to force method selection.