Preview API
Show preview API for:
Contents
-
InterfacesInterfacePreview 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.String Templates
StringTemplate
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.
-
ClassesClassPreview FeatureDescriptionString 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 ClassesEnum ClassPreview FeatureDescriptionStructured ConcurrencyRepresents the state of a subtask.
-
Exception ClassesException ClassPreview FeatureDescriptionStructured ConcurrencyThrown when a structure violation is detected.
-
FieldsFieldPreview FeatureDescriptionString TemplatesMaximum number of argument slots in String Concat call.
-
MethodsMethodPreview 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.Unnamed Classes and Instance Main MethodsReturnstrue
if and only if the underlying class is an unnamed class.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.Unnamed Classes and Instance Main MethodsReturnstrue
if this is an unnamed class andfalse
otherwise.Unnamed Patterns and VariablesReturnstrue
if this is an unnamed variable andfalse
otherwise.
-
Enum ConstantsEnum ConstantPreview FeatureDescriptionUnnamed Patterns and VariablesUsed for instances of
BindingPatternTree
.String TemplatesUsed for instances ofStringTemplateTree
PREVIEW.