FormatProcessorPREVIEWStringTemplate.ProcessorPREVIEW<R,E extends Throwable> public static sealed interface StringTemplate.Processor.Linkage permits FormatProcessorPREVIEW
Linkage is a preview API of the Java platform. MethodHandle from linkage. These specializations are typically implemented to improve performance; specializing value types or avoiding boxing and vararg arrays.| Modifier and Type | Method | Description | 
|---|---|---|
| MethodHandle | linkage | This method creates a  MethodHandlethat when invoked with arguments of those specified intypereturns a result that equals that returned by the template processor's process method. | 
MethodHandle linkage(List<String> fragments, MethodType type)
MethodHandle that when invoked with arguments of those specified in type returns a result that equals that returned by the template processor's process method. The difference being that this method can preview the template's fragments and value types in advance of usage and thereby has the opportunity to produce a specialized implementation.fragments - string template fragmentstype - method type, includes the StringTemplate receiver as well as the value typesMethodHandle for the processor applied to templateNullPointerException - if any of the arguments are null
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/StringTemplate.Processor.Linkage.html
  
Linkagewhen preview features are enabled.