Preview API
Show preview API for:
Contents
-
InterfacePreview FeatureDescriptionPattern Matching for switchA marker interface for
Tree
s that may be used asCaseTree
labels.Pattern Matching for switchA case label element that refers to a constant expressionRecord PatternsA deconstruction pattern tree.Pattern Matching for switchA case label that marksdefault
incase null, default
.Pattern Matching for switchA tree node for a parenthesized pattern.Pattern Matching for switchA case label element that refers to an expressionForeign Function & Memory APIAn object that may be projected down to a memory addressPREVIEW.Foreign Function & Memory APIA linker provides access to foreign functions from Java code, and access to Java code from foreign functions.Foreign Function & Memory APIA memory address models a reference into a memory location.Foreign Function & Memory APIA memory layout can be used to describe the contents of a memory segment.Foreign Function & Memory APIAn element in a layout path.Foreign Function & Memory APIA memory segment models a contiguous region of memory.Foreign Function & Memory APIA memory session manages the lifecycle of one or more resources.Foreign Function & Memory APIAn object that may be used to allocate memory segmentsPREVIEW.Foreign Function & Memory APIA symbol lookup is an object that may be used to retrieve the address of a symbol in one or more libraries.Foreign Function & Memory APIA variable argument list, similar in functionality to a Cva_list
.Foreign Function & Memory APIA builder used to construct a variable argument listPREVIEW.Virtual ThreadsA builder forThread
andThreadFactory
objects.Virtual ThreadsA builder for creating a platformThread
orThreadFactory
that creates platform threads.Virtual ThreadsA builder for creating a virtualThread
orThreadFactory
that creates virtual threads.
-
ClassPreview FeatureDescriptionForeign Function & Memory APIA function descriptor is made up of zero or more argument layouts and zero or one return layout.Foreign Function & Memory APIA compound layout that aggregates multiple member layouts.Foreign Function & Memory APIA compound layout that denotes a repetition of a given element layout.Foreign Function & Memory APIA value layout.Foreign Function & Memory APIA value layout whose carrier is
MemoryAddress.class
.Foreign Function & Memory APIA value layout whose carrier isboolean.class
.Foreign Function & Memory APIA value layout whose carrier isbyte.class
.Foreign Function & Memory APIA value layout whose carrier ischar.class
.Foreign Function & Memory APIA value layout whose carrier isdouble.class
.Foreign Function & Memory APIA value layout whose carrier isfloat.class
.Foreign Function & Memory APIA value layout whose carrier isint.class
.Foreign Function & Memory APIA value layout whose carrier islong.class
.Foreign Function & Memory APIA value layout whose carrier isshort.class
.Pattern Matching for switchBootstrap methods for linkinginvokedynamic
call sites that implement the selection functionality of theswitch
statement.
-
Enum ClassPreview FeatureDescriptionVirtual ThreadsThread dump format.
-
Exception ClassPreview FeatureDescriptionPattern Matching for switchThrown to indicate an unexpected failure in pattern matching.
-
MethodPreview FeatureDescriptionVirtual ThreadsRestricts the events generated by this request to only platform threads.Virtual ThreadsRestricts the events generated by this request to only platform threads.Virtual ThreadsReturns
true
if the thread is a virtual thread.com.sun.management.HotSpotDiagnosticMXBean.dumpThreads(String, HotSpotDiagnosticMXBean.ThreadDumpFormat) PREVIEWVirtual ThreadsGenerate a thread dump to the given file in the given format.Pattern Matching for switchReturns the labels for this case.Pattern Matching for switchVisits aConstantCaseLabelTree
node.Record PatternsVisits aDeconstructionPatternTree
node.Pattern Matching for switchVisits aDefaultCaseLabelTree
node.Pattern Matching for switchVisits aParenthesizedPatternTree
node.Pattern Matching for switchVisits aPatternCaseLabelTree
node.Pattern Matching for switchVisits aConstantCaseLabelTree
node.com.sun.source.util.SimpleTreeVisitor.visitDeconstructionPattern(DeconstructionPatternTree, P) PREVIEWRecord PatternsVisits aDeconstructionPatternTree
node.Pattern Matching for switchVisits aDefaultCaseLabelTree
node.Pattern Matching for switchVisits aParenthesizedPatternTree
node.Pattern Matching for switchVisits aPatternCaseLabelTree
node.Pattern Matching for switchVisits aConstantCaseLabelTree
node.Record PatternsVisits aDeconstructionPatternTree
node.Pattern Matching for switchVisits aDefaultCaseLabelTree
node.Pattern Matching for switchVisits aParenthesizedPatternTree
node.Pattern Matching for switchVisits aPatternCaseLabelTree
node.Foreign Function & Memory APIAdapts a target var handle by pre-processing a sub-sequence of its coordinate values with a filter (a method handle).Foreign Function & Memory APIReturns a var handle which will discard some dummy coordinates before delegating to the target var handle.Foreign Function & Memory APIAdapts a target var handle by pre-processing incoming coordinate values using unary filter functions.Foreign Function & Memory APIAdapts a target var handle by pre-processing incoming and outgoing values using a pair of filter functions.Foreign Function & Memory APIProvides a target var handle with one or more bound coordinates in advance of the var handle's invocation.Foreign Function & Memory APICreates a var handle object, which can be used to dereference a memory segmentPREVIEW by viewing its contents as a sequence of the provided value layout.Foreign Function & Memory APIProvides a var handle which adapts the coordinate values of the target var handle, by re-arranging them so that the new coordinates match the provided ones.Virtual ThreadsReturnstrue
if this thread is a virtual thread.Virtual ThreadsReturns a builder for creating a platformThread
orThreadFactory
that creates platform threads.Virtual ThreadsReturns a builder for creating a virtualThread
orThreadFactory
that creates virtual threads.Virtual ThreadsCreates a virtual thread to execute a task and schedules it to execute.Foreign Function & Memory APIMaps a region of this channel's file into a new mapped memory segment, with the given offset, size and memory session.Virtual ThreadsCreates an Executor that starts a new Thread for each task.Virtual ThreadsCreates an Executor that starts a new virtual Thread for each task.Virtual ThreadsReturnstrue
if this is a virtual Thread,false
otherwise.
-
Enum ConstantPreview FeatureDescriptionPattern Matching for switchUsed for instances of
ConstantCaseLabelTree
PREVIEW.Record PatternsUsed for instances ofDeconstructionPatternTree
PREVIEW.Pattern Matching for switchUsed for instances ofDefaultCaseLabelTree
PREVIEW.Pattern Matching for switchUsed for instances ofParenthesizedPatternTree
PREVIEW.Pattern Matching for switchUsed for instances ofPatternCaseLabelTree
PREVIEW.