Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.lang.invoke |
The
java.lang.invoke package contains dynamic language support provided directly by
the Java core class libraries and virtual machine. |
javax.management.relation |
Provides the definition of the Relation Service.
|
javax.script |
The scripting API consists of interfaces and classes that define
Java TM Scripting Engines and provides
a framework for their use in Java applications.
|
Modifier and Type | Method and Description |
---|---|
Constructor<T> |
Class.getConstructor(Class<?>... parameterTypes)
Answers a public Constructor object which represents the
constructor described by the arguments.
|
Constructor<T> |
Class.getDeclaredConstructor(Class<?>... parameterTypes)
Answers a Constructor object which represents the
constructor described by the arguments.
|
Method |
Class.getDeclaredMethod(String name,
Class<?>... parameterTypes)
Answers a Method object which represents the method
described by the arguments.
|
Method |
Class.getMethod(String name,
Class<?>... parameterTypes)
Answers a Method object which represents the method
described by the arguments.
|
Modifier and Type | Method and Description |
---|---|
MethodHandle |
MethodHandles.Lookup.bind(Object receiver,
String methodName,
MethodType type)
Return an early-bound method handle to a non-static method.
|
MethodHandle |
MethodHandles.Lookup.findConstructor(Class<?> declaringClass,
MethodType type)
Return a MethodHandle that will create an object of the required class and initialize it using
the constructor method with signature type.
|
MethodHandle |
MethodHandles.Lookup.findSpecial(Class<?> clazz,
String methodName,
MethodType type,
Class<?> specialToken)
Return a MethodHandle bound to a specific-implementation of a virtual method, as if created by an invokespecial bytecode
using the class specialToken.
|
MethodHandle |
MethodHandles.Lookup.findStatic(Class<?> clazz,
String methodName,
MethodType type)
Return a MethodHandle to a static method.
|
MethodHandle |
MethodHandles.Lookup.findVirtual(Class<?> clazz,
String methodName,
MethodType type)
Return a MethodHandle to a virtual method.
|
Modifier and Type | Method and Description |
---|---|
void |
RelationService.addRelation(ObjectName relationObjectName)
Adds an MBean created by the user (and registered by him in the MBean
Server) as a relation in the Relation Service.
|
void |
RelationServiceMBean.addRelation(ObjectName relationObjectName)
Adds an MBean created by the user (and registered by him in the MBean
Server) as a relation in the Relation Service.
|
Modifier and Type | Method and Description |
---|---|
Object |
Invocable.invokeFunction(String name,
Object... args)
Used to call top-level procedures and functions defined in scripts.
|
Object |
Invocable.invokeMethod(Object thiz,
String name,
Object... args)
Calls a method on a script object compiled during a previous script execution,
which is retained in the state of the
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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.