Home » openjdk-7 » java.lang.invoke » [javadoc | source]
java.lang.invoke
abstract static class: ToGeneric.Adapter [javadoc | source]
java.lang.Object
   java.lang.invoke.MethodHandle
      java.lang.invoke.BoundMethodHandle
         java.lang.invoke.ToGeneric$Adapter

Direct Known Subclasses:
    A9, A8, A7, A6, A5, A4, A3, A2, A1, A0, A10

The invoke method takes some particular but unconstrained spread of raw argument types, and returns a raw return type (in L/I/J/F/D). Internally, it converts the incoming arguments uniformly into objects. This series of objects is then passed to the {@code target} method, which returns a result object. This result is finally converted, via another method handle {@code convert}, which is responsible for converting the object result into the raw return value.
Field Summary
protected final  MethodHandle invoker     
protected final  MethodHandle target     
protected final  MethodHandle convert     
Fields inherited from java.lang.invoke.MethodHandle:
vmtarget,  INT_FIELD,  LONG_FIELD
Constructor:
 protected Adapter(MethodHandle entryPoint) 
 protected Adapter(MethodHandle entryPoint,
    MethodHandle invoker,
    MethodHandle convert,
    MethodHandle target) 
Method from java.lang.invoke.ToGeneric$Adapter Summary:
debugString,   findSubClass,   isPrototype,   makeInstance,   prototypeEntryPoint,   return_D,   return_F,   return_I,   return_J,   return_L,   target,   target,   target,   target,   target
Methods from java.lang.invoke.BoundMethodHandle:
badBoundArgumentException,   baseName,   bindPrimitiveArgument,   checkReferenceArgument,   debugString
Methods from java.lang.invoke.MethodHandle:
asCollector,   asFixedArity,   asSpreader,   asType,   asVarargsCollector,   bindTo,   debugString,   invoke,   invokeExact,   invokeWithArguments,   invokeWithArguments,   isVarargsCollector,   toString,   type
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.lang.invoke.ToGeneric$Adapter Detail:
 String debugString() 
 static Class<Adapter> findSubClass(String name) 
    Find a sibing class of Adapter.
 protected boolean isPrototype() 
 abstract protected Adapter makeInstance(MethodHandle entryPoint,
    MethodHandle invoker,
    MethodHandle convert,
    MethodHandle target)
    Make a copy of self, with new fields.
 protected MethodHandle prototypeEntryPoint() 
 protected double return_D(Object res) throws Throwable 
 protected float return_F(Object res) throws Throwable 
 protected int return_I(Object res) throws Throwable 
 protected long return_J(Object res) throws Throwable 
 protected Object return_L(Object res) throws Throwable 
 protected Object target() throws Throwable 
 protected Object target(Object a0) throws Throwable 
 protected Object target(Object a0,
    Object a1) throws Throwable 
 protected Object target(Object a0,
    Object a1,
    Object a2) throws Throwable 
 protected Object target(Object a0,
    Object a1,
    Object a2,
    Object a3) throws Throwable