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 arena controls the lifecycle of memory segments, providing both flexible allocation and timely deallocation.Foreign Function & Memory APIA function descriptor models the signature of foreign functions.Foreign Function & Memory APIA compound layout that aggregates multiple member layouts.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 linker option is used to indicate additional linking requirements to the linker, besides what is described by a function descriptor.Foreign Function & Memory APIA linker option for saving portions of the execution state immediately after calling a foreign function associated with a downcall method handle, before it can be overwritten by the runtime, or read through conventional means.Foreign Function & Memory APIA memory layout describes the contents of a memory segment.Foreign Function & Memory APIAn element in a layout path.Foreign Function & Memory APIA memory segment provides access to a contiguous region of memory.Foreign Function & Memory APIA padding layout.Foreign Function & Memory APIAn object that may be used to allocate memory segmentsPREVIEW.Foreign Function & Memory APIA segment scope controls access to memory segments.Foreign Function & Memory APIA compound layout that denotes a repetition of a given element layout.Foreign Function & Memory APIA group layout whose member layouts are laid out one after the other.Foreign Function & Memory APIA symbol lookup retrieves the address of a symbol in one or more libraries.Foreign Function & Memory APIA group layout whose member layouts are laid out at the same starting offset.Foreign Function & Memory APIHelper class to create and manipulate variable argument lists, similar in functionality to a Cva_list
.Foreign Function & Memory APIA builder used to construct a variable argument listPREVIEW.Foreign Function & Memory APIA layout that models values of basic data types.Foreign Function & Memory APIA value layout whose carrier isMemorySegment.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
.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 FeatureDescriptionPattern Matching for switchBootstrap methods for linking
invokedynamic
call sites that implement the selection functionality of theswitch
statement.
-
Enum ClassPreview FeatureDescriptionVirtual ThreadsThread dump format.Record Patterns"Enhanced"
for
declarations come in two forms: local variable declarations and record patternsRecord PatternsTwo possible variants of instanceof expressions: testing types, and performing pattern matching
-
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.Record PatternsReturns the kind of the declaration of the "enhanced"for
.Record PatternsReturns the control variable or pattern for the loop.Record PatternsReturns the kind of this instanceof expression.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.Foreign Function & Memory APIReturnstrue
if this module can access restricted methods.Foreign Function & Memory APIEnables native access for a module in the layer if the caller's module has native access.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.