Home » openjdk-7 » java.lang.invoke » [javadoc | source]
java.lang.invoke
abstract class: MethodHandleImpl [javadoc | source]
java.lang.Object
   java.lang.invoke.MethodHandleImpl
Trusted implementation code for MethodHandle.
Nested Class Summary:
static final class  MethodHandleImpl.AllocateObject   
static final class  MethodHandleImpl.FieldAccessor   
Field Summary
static  MethodHandle SELECT_ALTERNATIVE     
static  MethodHandle THROW_EXCEPTION     
Method from java.lang.invoke.MethodHandleImpl Summary:
accessArrayElement,   accessField,   bindArgument,   bindReceiver,   collectArguments,   collectArguments,   convertArguments,   convertArguments,   dropArguments,   filterArgument,   findMethod,   foldArguments,   getBootstrap,   initStatics,   makeAllocator,   makeGuardWithCatch,   makeGuardWithTest,   permuteArguments,   registerBootstrap,   selectAlternative,   selectAlternative,   spreadArguments,   spreadArguments,   spreadArgumentsFromPos,   throwException,   throwException,   throwException
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.lang.invoke.MethodHandleImpl Detail:
 static MethodHandle accessArrayElement(Class<?> arrayClass,
    boolean isSetter) 
 static MethodHandle accessField(MemberName member,
    boolean isSetter,
    Class<?> lookupClass) 
 static MethodHandle bindArgument(MethodHandle target,
    int argnum,
    Object receiver) 
    Bind a predetermined argument to the given arbitrary method handle. Callable only from MethodHandles.
 static MethodHandle bindReceiver(MethodHandle target,
    Object receiver) 
    Bind a predetermined first argument to the given direct method handle. Callable only from MethodHandles.
 static MethodHandle collectArguments(MethodHandle target,
    int collectArg,
    MethodHandle collector) 
 static MethodHandle collectArguments(MethodHandle target,
    MethodType newType,
    int collectArg,
    MethodHandle collector) 
 static MethodHandle convertArguments(MethodHandle target,
    MethodType newType,
    int level) 
 static MethodHandle convertArguments(MethodHandle target,
    MethodType newType,
    MethodType oldType,
    int level) 
 static MethodHandle dropArguments(MethodHandle target,
    MethodType newType,
    int argnum) 
 static MethodHandle filterArgument(MethodHandle target,
    int pos,
    MethodHandle filter) 
 static MethodHandle findMethod(MemberName method,
    boolean doDispatch,
    Class<?> lookupClass) throws IllegalAccessException 
    Look up a given method. Callable only from sun.invoke and related packages.

    The resulting method handle type will be of the given type, with a receiver type {@code rcvc} prepended if the member is not static.

    Access checks are made as of the given lookup class. In particular, if the method is protected and {@code defc} is in a different package from the lookup class, then {@code rcvc} must be the lookup class or a subclass.

 static MethodHandle foldArguments(MethodHandle target,
    MethodType newType,
    int foldPos,
    MethodHandle combiner) 
 static MethodHandle getBootstrap(Class<?> callerClass) 
 static  void initStatics() 
 static MethodHandle makeAllocator(MethodHandle rawConstructor) 
 static MethodHandle makeGuardWithCatch(MethodHandle target,
    Class<Throwable> exType,
    MethodHandle catcher) 
 static MethodHandle makeGuardWithTest(MethodHandle test,
    MethodHandle target,
    MethodHandle fallback) 
 static MethodHandle permuteArguments(MethodHandle target,
    MethodType newType,
    MethodType oldType,
    int[] permutationOrNull) 
 static  void registerBootstrap(Class<?> callerClass,
    MethodHandle bootstrapMethod) 
 static MethodHandle selectAlternative() 
 static MethodHandle selectAlternative(boolean testResult,
    MethodHandle target,
    MethodHandle fallback) 
 static MethodHandle spreadArguments(MethodHandle target,
    Class<?> arrayType,
    int arrayLength) 
 static MethodHandle spreadArguments(MethodHandle target,
    MethodType newType,
    int spreadArgPos,
    Class<?> arrayType,
    int arrayLength) 
 static MethodHandle spreadArgumentsFromPos(MethodHandle target,
    MethodType newType,
    int spreadArgPos) 
 static MethodHandle throwException() 
 static MethodHandle throwException(MethodType type) 
 static Empty throwException(T t) throws T