Package com.google.inject.assistedinject
Class FactoryProvider2.MethodHandleWrapper
- java.lang.Object
-
- com.google.inject.assistedinject.FactoryProvider2.MethodHandleWrapper
-
- Enclosing class:
- FactoryProvider2<F>
private static class FactoryProvider2.MethodHandleWrapper extends java.lang.ObjectWrapper around MethodHandles/MethodHandle, so we can compile+run on java6.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static intALL_MODES(package private) static java.lang.reflect.MethodbindTo(package private) java.lang.Objecthandle(package private) static java.lang.reflect.MethodinvokeWithArguments(package private) static java.lang.reflect.Constructor<?>lookupCxtor(package private) static java.lang.reflect.MethodunreflectSpecial(package private) static booleanvalid
-
Constructor Summary
Constructors Constructor Description MethodHandleWrapper(java.lang.Object handle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static FactoryProvider2.MethodHandleWrappercreate(java.lang.reflect.Method method, java.lang.Object proxy)(package private) java.lang.ObjectinvokeWithArguments(java.lang.Object[] args)java.lang.StringtoString()
-
-
-
Field Detail
-
ALL_MODES
static final int ALL_MODES
- See Also:
- Constant Field Values
-
unreflectSpecial
static final java.lang.reflect.Method unreflectSpecial
-
bindTo
static final java.lang.reflect.Method bindTo
-
invokeWithArguments
static final java.lang.reflect.Method invokeWithArguments
-
lookupCxtor
static final java.lang.reflect.Constructor<?> lookupCxtor
-
valid
static final boolean valid
-
handle
final java.lang.Object handle
-
-
Method Detail
-
create
static FactoryProvider2.MethodHandleWrapper create(java.lang.reflect.Method method, java.lang.Object proxy)
-
invokeWithArguments
java.lang.Object invokeWithArguments(java.lang.Object[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-