Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
java.awt.print |
Provides classes and interfaces for a general printing API.
|
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 |
Provides the core classes for the Java Management Extensions.
|
org.xml.sax.helpers |
This package contains "helper" classes, including
support for bootstrapping SAX-based applications.
|
Modifier and Type | Method and Description |
---|---|
void |
SplashScreen.setImageURL(URL imageURL)
Changes the splash screen image.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
PrinterJob.setPageable(Pageable document)
Queries
document for the number of pages and
the PageFormat and Printable for each
page held in the Pageable instance,
document . |
Modifier and Type | Method and Description |
---|---|
MethodType |
MethodType.appendParameterTypes(Class<?>... classes)
Returns a MethodType with the additional class types appended to the end.
|
MethodType |
MethodType.appendParameterTypes(List<Class<?>> classes)
Returns a MethodType with the additional class types appended to the end.
|
MethodHandle |
MethodHandle.asCollector(Class<?> arrayClass,
int collectCount)
Returns a MethodHandle that collects the requested incoming arguments, which must match the
types in MethodType incomingArgs, into an array of arrayClass, called T.
|
static MethodHandle |
MethodHandles.catchException(MethodHandle tryHandle,
Class<? extends Throwable> throwableClass,
MethodHandle catchHandle)
Produce a MethodHandle that implements a try-catch block.
|
static MethodHandle |
MethodHandles.collectArguments(MethodHandle target,
int pos,
MethodHandle filter)
Produce a MethodHandle that preprocesses some of the arguments by calling the filter handle.
|
static MethodHandle |
MethodHandles.constant(Class<?> returnType,
Object constantValue)
Create a MethodHandle that returns the constantValue on each invocation.
|
static MethodHandle |
MethodHandles.explicitCastArguments(MethodHandle handle,
MethodType type)
Produce an adapter that converts the incoming arguments from type to the underlying MethodHandle's type
and converts the return value as required.
|
static MethodHandle |
MethodHandles.filterArguments(MethodHandle handle,
int startPosition,
MethodHandle... filters)
Produce a MethodHandle that adapts its arguments using the filter methodhandles before calling the underlying handle.
|
static MethodHandle |
MethodHandles.filterReturnValue(MethodHandle handle,
MethodHandle filter)
Return a MethodHandle that will adapt the return value of handle by running the filter
on it and returning the result of the filter.
|
MethodHandle |
MethodHandles.Lookup.findGetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides read access to a field.
|
MethodHandle |
MethodHandles.Lookup.findSetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides write access to a field.
|
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.findStaticGetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides read access to a field.
|
MethodHandle |
MethodHandles.Lookup.findStaticSetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides write access to a field.
|
static MethodHandle |
MethodHandles.foldArguments(MethodHandle handle,
MethodHandle preprocessor)
Produce a MethodHandle that preprocesses some of the arguments by calling the preprocessor handle.
|
static MethodHandle |
MethodHandles.guardWithTest(MethodHandle guard,
MethodHandle trueTarget,
MethodHandle falseTarget)
Produce a MethodHandle that implements an if-else block.
|
static MethodHandle |
MethodHandles.identity(Class<?> classType)
Produce a MethodHandle that acts as an identity function.
|
Object |
MethodHandle.invokeWithArguments(List<?> args)
Helper method to call
MethodHandle.invokeWithArguments(Object[]) . |
static MethodHandle |
MethodHandles.permuteArguments(MethodHandle handle,
MethodType permuteType,
int... permute)
Produce a MethodHandle that will permute the incoming arguments according to the
permute array.
|
static <T extends Member> |
MethodHandles.reflectAs(Class<T> expected,
MethodHandle target)
Gets the underlying Member of the provided
target MethodHandle. |
MethodHandleInfo |
MethodHandles.Lookup.revealDirect(MethodHandle target)
Cracks a MethodHandle, which allows access to its symbolic parts.
|
void |
VolatileCallSite.setTarget(MethodHandle nextTarget)
Set the CallSite's target to be nextTarget.
|
abstract void |
CallSite.setTarget(MethodHandle nextTarget)
Set the CallSite's target to be nextTarget.
|
static MethodHandle |
MethodHandles.spreadInvoker(MethodType type,
int fixedArgCount)
Return a MethodHandle that is able to invoke a MethodHandle of type as though by
invoke after spreading the final Object[] parameter.
|
static void |
MutableCallSite.syncAll(MutableCallSite[] sites)
Forces the current target MethodHandle of each of the MutableCallSites in the sites array to be seen by all threads.
|
Constructor and Description |
---|
ConstantCallSite(MethodType targetType,
MethodHandle hook)
Create a ConstantCallSite and assign the hook MethodHandle's result to its permanent target.
|
MutableCallSite(MethodHandle mutableTarget)
Create a MutableCallSite permanently set to the same type as the mutableTarget and using
the mutableTarget as the initial target value.
|
MutableCallSite(MethodType type)
Create a MutableCallSite with the MethodType type and an
initial target that throws IllegalStateException.
|
VolatileCallSite(MethodHandle volatileTarget)
Create a VolatileCallSite with the same type as the volatileTarget
and the initial target set to volatileTarget.
|
VolatileCallSite(MethodType type)
Create a VolatileCallSite with the MethodType type and an
initial target that throws IllegalStateException.
|
Modifier and Type | Method and Description |
---|---|
static ObjectName |
ObjectName.getInstance(String name)
Return an instance of ObjectName that can be used anywhere
an object obtained with
new
ObjectName(name) can be used. |
Modifier and Type | Method and Description |
---|---|
static Parser |
ParserFactory.makeParser()
Deprecated.
Create a new SAX parser using the `org.xml.sax.parser' system property.
|
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.