软件包 | 描述 |
---|---|
java.lang |
提供对java编程语言的设计基础课。
|
java.lang.invoke |
java.lang.invoke 包中包含的动态语言支持的java核心类库和虚拟机直接提供。
|
javax.management.relation |
提供关系服务的定义。
|
javax.script |
脚本API的接口和类,定义
TM java脚本引擎提供了一种用于java应用程序框架。
|
Modifier and Type | Method and Description |
---|---|
Constructor<T> |
Class.getConstructor(类<?>... parameterTypes)
返回一个
Constructor 对象反映指定的公共构造函数的
类 对象表示的类。
|
Constructor<T> |
Class.getDeclaredConstructor(类<?>... parameterTypes)
返回一个
Constructor 对象反映指定的构造函数的类或接口的
类 对象表示。
|
方法 |
Class.getDeclaredMethod(String name, 类<?>... parameterTypes)
返回一个
方法 对象反映指定声明方法的类或接口的
类 对象表示。
|
方法 |
Class.getMethod(String name, 类<?>... parameterTypes)
返回一个
方法 对象反映的类或接口的
类 对象表示的指定公共成员方法。
|
Modifier and Type | Method and Description |
---|---|
MethodHandle |
MethodHandles.Lookup.bind(Object receiver, String name, MethodType type)
用于非静态方法的早期绑定方法句柄。
|
MethodHandle |
MethodHandles.Lookup.findConstructor(类<?> refc, MethodType type)
产生的方法处理,创建一个对象并将它初始化,使用指定类型的构造函数。
|
MethodHandle |
MethodHandles.Lookup.findSpecial(类<?> refc, String name, MethodType type, 类<?> specialCaller)
为一个虚拟方法产生早期绑定的方法句柄。
|
MethodHandle |
MethodHandles.Lookup.findStatic(类<?> refc, String name, MethodType type)
用于静态方法的方法处理。
|
MethodHandle |
MethodHandles.Lookup.findVirtual(类<?> refc, String name, MethodType type)
产生一个虚拟方法的方法句柄。
|
Modifier and Type | Method and Description |
---|---|
void |
RelationService.addRelation(ObjectName relationObjectName)
添加用户创建的MBean(和注册由他在MBean服务器)在关系服务的关系。
|
void |
RelationServiceMBean.addRelation(ObjectName relationObjectName)
添加用户创建的MBean(和注册由他在MBean服务器)在关系服务的关系。
|
Modifier and Type | Method and Description |
---|---|
Object |
Invocable.invokeFunction(String name, Object... args)
用于调用脚本中定义的顶级程序和函数。
|
Object |
Invocable.invokeMethod(Object thiz, String name, Object... args)
调用在编译脚本对象上执行脚本中的方法,这是保留的
ScriptEngine 状态。
|
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, 2014, Oracle and/or its affiliates. All rights reserved.