Uses of Class
java.lang.invoke.MethodHandles.Lookup
-
Packages that use MethodHandles.Lookup 软件包 描述 java.lang.invoke java.lang.invoke软件包包含由Java核心类库和虚拟机直接提供的动态语言支持。jdk.dynalink 包含用于链接invokedynamic调用站点的接口和类。jdk.dynalink.linker 包含语言运行时所需的接口和类,以实现自己的特定于语言的对象模型和类型转换。jdk.dynalink.linker.support 包含课程,使语言运行时更方便地实现自己的特定于语言的对象模型,并通过提供一些类的基本实现以及各种实用程序来类型转换。 -
-
Uses of MethodHandles.Lookup in java.lang.invoke
Methods in java.lang.invoke that return MethodHandles.Lookup Modifier and Type 方法 描述 MethodHandles.LookupMethodHandles.Lookup. dropLookupMode(int modeToDrop)在同一查找类中创建一个查找,该查找对象查找成员,但查找模式已丢失给定的查找模式。MethodHandles.LookupMethodHandles.Lookup. in(Class<?> requestedLookupClass)在指定的新查找类上创建一个查找。static MethodHandles.LookupMethodHandles. lookup()返回一个具有完整功能的lookup object,以模拟调用者的所有支持的字节码行为。static MethodHandles.LookupMethodHandles. privateLookupIn(Class<?> targetClass, MethodHandles.Lookup lookup)返回一个lookup object,具有完整功能,可以在目标类上模拟所有支持的字节码行为,包括private access 。static MethodHandles.LookupMethodHandles. publicLookup()返回最低可信度的lookup object。Methods in java.lang.invoke with parameters of type MethodHandles.Lookup Modifier and Type 方法 描述 static CallSiteLambdaMetafactory. altMetafactory(MethodHandles.Lookup caller, String invokedName, MethodType invokedType, Object... args)通过委派给所提供的MethodHandle,在适当的类型适应和参数的部分评估后,便于创建简单的“功能对象”,实现一个或多个接口。static CallSiteStringConcatFactory. makeConcat(MethodHandles.Lookup lookup, String name, MethodType concatType)促进创建优化的字符串连接方法,可以用于有效地连接已知数量的已知类型的参数,可能在类型适配和参数的部分评估之后。static CallSiteStringConcatFactory. makeConcatWithConstants(MethodHandles.Lookup lookup, String name, MethodType concatType, String recipe, Object... constants)促进创建优化的字符串连接方法,可以用于有效地连接已知数量的已知类型的参数,可能在类型适配和参数的部分评估之后。static CallSiteLambdaMetafactory. metafactory(MethodHandles.Lookup caller, String invokedName, MethodType invokedType, MethodType samMethodType, MethodHandle implMethod, MethodType instantiatedMethodType)通过委派给所提供的MethodHandle,在适当的类型适应和参数的部分评估后,便于创建简单的“功能对象”,实现一个或多个接口。static MethodHandles.LookupMethodHandles. privateLookupIn(Class<?> targetClass, MethodHandles.Lookup lookup)返回一个lookup object,具有完整功能,可以在目标类上模拟所有支持的字节码行为,包括private access 。<T extends Member>
TMethodHandleInfo. reflectAs(Class<T> expected, MethodHandles.Lookup lookup)将基础成员反映为方法,构造函数或字段对象。 -
Uses of MethodHandles.Lookup in jdk.dynalink
Methods in jdk.dynalink that return MethodHandles.Lookup Modifier and Type 方法 描述 MethodHandles.LookupSecureLookupSupplier. getLookup()返回由此SecureLookupSupplier保护的查找。protected MethodHandles.LookupSecureLookupSupplier. getLookupPrivileged()返回SecureLookupSupplier.getLookup()的值,无需安全检查。Constructors in jdk.dynalink with parameters of type MethodHandles.Lookup Constructor 描述 CallSiteDescriptor(MethodHandles.Lookup lookup, Operation operation, MethodType methodType)创建一个新的呼叫站点描述符。SecureLookupSupplier(MethodHandles.Lookup lookup)创建一个新的安全查找供应商,确保传递的查找。 -
Uses of MethodHandles.Lookup in jdk.dynalink.linker
Method parameters in jdk.dynalink.linker with type arguments of type MethodHandles.Lookup Modifier and Type 方法 描述 GuardedInvocationGuardingTypeConverterFactory. convertToType(Class<?> sourceType, Class<?> targetType, Supplier<MethodHandles.Lookup> lookupSupplier)返回受保护的类型转换,它接收指定的源类型的值,并返回转换为指定的目标类型的值。 -
Uses of MethodHandles.Lookup in jdk.dynalink.linker.support
Methods in jdk.dynalink.linker.support with parameters of type MethodHandles.Lookup Modifier and Type 方法 描述 static MethodHandleLookup. findOwnSpecial(MethodHandles.Lookup lookup, String name, Class<?> rtype, Class<?>... ptypes)给定一个查找,找到使用Lookup.findSpecial(Class, String, MethodType)该查找的类的方法。static MethodHandleLookup. findOwnStatic(MethodHandles.Lookup lookup, String name, Class<?> rtype, Class<?>... ptypes)给定一个查找,找到使用Lookup.findStatic(Class, String, MethodType)一个方法在该查找的类。static MethodHandleLookup. unreflect(MethodHandles.Lookup lookup, 方法 m)执行unreflect(Method),将任何遇到的IllegalAccessException转换为IllegalAccessError。static MethodHandleLookup. unreflectConstructor(MethodHandles.Lookup lookup, Constructor<?> c)Constructors in jdk.dynalink.linker.support with parameters of type MethodHandles.Lookup Constructor 描述 Lookup(MethodHandles.Lookup lookup)Creates a new instance, bound to an instance ofMethodHandles.Lookup.
-