File tree 3 files changed +13
-4
lines changed
src/java.base/share/classes/java/lang
3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 33
33
import java .lang .template .ProcessorLinkage ;
34
34
import java .lang .template .StringTemplate ;
35
35
import java .lang .template .ValidatingProcessor ;
36
- import java .util .*;
36
+ import java .util .ArrayList ;
37
+ import java .util .Arrays ;
38
+ import java .util .Collections ;
39
+ import java .util .List ;
40
+ import java .util .Objects ;
37
41
38
42
import jdk .internal .access .JavaTemplateAccess ;
39
43
import jdk .internal .access .SharedSecrets ;
Original file line number Diff line number Diff line change 47
47
@ PreviewFeature (feature =PreviewFeature .Feature .STRING_TEMPLATES )
48
48
public sealed interface ProcessorLinkage permits FormatProcessor {
49
49
/**
50
- * Construct a {@link MethodHandle} that constructs a result based on the
51
- * bootstrap method information.
50
+ * This method creates a {@link MethodHandle} that when invoked with arguments of
51
+ * those specified in {@code type} returns a result that equals that returned by
52
+ * the template processor's process method. The difference being that this method
53
+ * can preview the template's fragments and value types in advance of usage and
54
+ * thereby has the opportunity to produce a specialized implementation.
52
55
*
53
56
* @param fragments string template fragments
54
57
* @param type method type
Original file line number Diff line number Diff line change 47
47
*/
48
48
@ PreviewFeature (feature =PreviewFeature .Feature .STRING_TEMPLATES )
49
49
@ FunctionalInterface
50
- public interface TemplateProcessor <R > extends ValidatingProcessor <R , RuntimeException > {}
50
+ public interface TemplateProcessor <R > extends ValidatingProcessor <R , RuntimeException > {
51
+
52
+ }
You can’t perform that action at this time.
0 commit comments