Package | Description |
---|---|
java.lang.invoke |
The
java.lang.invoke package contains dynamic language support provided directly by
the Java core class libraries and virtual machine. |
Modifier and Type | Method | Description |
---|---|---|
MethodHandles.Lookup |
MethodHandles.Lookup.dropLookupMode(int modeToDrop) |
Creates a lookup on the same lookup class which this lookup object
finds members, but with a lookup mode that has lost the given lookup mode.
|
MethodHandles.Lookup |
MethodHandles.Lookup.in(Class<?> requestedLookupClass) |
Creates a lookup on the specified new lookup class.
|
static MethodHandles.Lookup |
MethodHandles.lookup() |
Returns a
lookup object with
full capabilities to emulate all supported bytecode behaviors of the caller. |
static MethodHandles.Lookup |
MethodHandles.privateLookupIn(Class<?> targetClass,
MethodHandles.Lookup lookup) |
Returns a
lookup object with full capabilities to emulate all
supported bytecode behaviors, including
private access, on a target class. |
static MethodHandles.Lookup |
MethodHandles.publicLookup() |
Returns a
lookup object which is trusted minimally. |
Modifier and Type | Method | Description |
---|---|---|
static CallSite |
LambdaMetafactory.altMetafactory(MethodHandles.Lookup caller,
String invokedName,
MethodType invokedType,
Object... args) |
Facilitates the creation of simple "function objects" that implement one
or more interfaces by delegation to a provided
MethodHandle ,
after appropriate type adaptation and partial evaluation of arguments. |
static CallSite |
StringConcatFactory.makeConcat(MethodHandles.Lookup lookup,
String name,
MethodType concatType) |
Facilitates the creation of optimized String concatenation methods, that
can be used to efficiently concatenate a known number of arguments of
known types, possibly after type adaptation and partial evaluation of
arguments.
|
static CallSite |
StringConcatFactory.makeConcatWithConstants(MethodHandles.Lookup lookup,
String name,
MethodType concatType,
String recipe,
Object... constants) |
Facilitates the creation of optimized String concatenation methods, that
can be used to efficiently concatenate a known number of arguments of
known types, possibly after type adaptation and partial evaluation of
arguments.
|
static CallSite |
LambdaMetafactory.metafactory(MethodHandles.Lookup caller,
String invokedName,
MethodType invokedType,
MethodType samMethodType,
MethodHandle implMethod,
MethodType instantiatedMethodType) |
Facilitates the creation of simple "function objects" that implement one
or more interfaces by delegation to a provided
MethodHandle ,
after appropriate type adaptation and partial evaluation of arguments. |
static MethodHandles.Lookup |
MethodHandles.privateLookupIn(Class<?> targetClass,
MethodHandles.Lookup lookup) |
Returns a
lookup object with full capabilities to emulate all
supported bytecode behaviors, including
private access, on a target class. |
<T extends Member> |
MethodHandleInfo.reflectAs(Class<T> expected,
MethodHandles.Lookup lookup) |
Reflects the underlying member as a method, constructor, or field object.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps