Preview API
Show preview API for:
Contents
-
InterfacePreview FeatureDescriptionUnnamed Patterns and VariablesA tree node for a binding pattern that matches a pattern with a variable of any name and a type of the match candidate; an unnamed pattern.String TemplatesA tree node for a string template expression.Foreign Function & Memory APIA value layout used to model the address of some region of memory.Foreign Function & Memory APIAn arena controls the lifecycle of native 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 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 scope models the lifetime of all the memory segments associated with it.Foreign Function & Memory APIA padding layout.Foreign Function & Memory APIAn object that may be used to allocate memory segmentsPREVIEW.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 APIA layout that models values of basic data types.Foreign Function & Memory APIA value layout whose carrier is
boolean.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
.String TemplatesStringTemplate
PREVIEW is the run-time representation of a string template or text block template in a template expression.String TemplatesThis interface describes the methods provided by a generalized string template processor.String TemplatesBuilt-in policies using this additional interface have the flexibility to specialize the composition of the templated string by returning a customizedMethodHandle
fromlinkage
PREVIEW.Structured ConcurrencyRepresents a subtask forked withStructuredTaskScope.fork(Callable)
PREVIEW.
-
ClassPreview FeatureDescriptionStructured ConcurrencyThis class consists exclusively of static methods that operate on threads for the purposes of monitoring and management.String TemplatesManages string template bootstrap methods.Scoped ValuesA value that may be safely and efficiently shared to methods without using method parameters.Scoped ValuesA mapping of scoped values, as keys, to values.Structured ConcurrencyA basic API for structured concurrency.Structured ConcurrencyStructured ConcurrencyA
StructuredTaskScope
that captures the result of the first subtask to complete successfullyPREVIEW.String TemplatesThisStringTemplate.Processor
PREVIEW constructs aString
result usingFormatter
specifications and values found in theStringTemplate
PREVIEW.
-
Enum ClassPreview FeatureDescriptionStructured ConcurrencyRepresents the state of a subtask.
-
Exception ClassPreview FeatureDescriptionStructured ConcurrencyThrown when a structure violation is detected.
-
FieldPreview FeatureDescriptionString TemplatesMaximum number of argument slots in String Concat call.
-
MethodPreview FeatureDescriptionUnnamed Patterns and VariablesVisits a
AnyPatternTree
node.String TemplatesVisits a StringTemplateTree node.Unnamed Patterns and VariablesVisits aAnyPatternTree
node.String TemplatesVisits a StringTemplateTree node.String TemplatesVisits a StringTemplateTree 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.String TemplatesSimplified concatenation method to facilitateStringTemplate
PREVIEW concatenation.java.lang.invoke.StringConcatFactory.makeConcatWithTemplateCluster(List<String>, List<Class<?>>, int) PREVIEWString TemplatesThis method breaks up large concatenations into separateMethodHandles
based on the number of slots required perMethodHandle
.java.lang.invoke.StringConcatFactory.makeConcatWithTemplateGetters(List<String>, List<MethodHandle>, int) PREVIEWString TemplatesThis method creates aMethodHandle
expecting one input, the receiver of the supplied getters.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.Foreign Function & Memory APIMaps a region of this channel's file into a new mapped memory segment, with the given offset, size and arena.Unnamed Patterns and VariablesReturnstrue
if this is an unnamed variable andfalse
otherwise.
-
Enum ConstantPreview FeatureDescriptionUnnamed Patterns and VariablesUsed for instances of
BindingPatternTree
.String TemplatesUsed for instances ofStringTemplateTree
PREVIEW.