author | mbaesken |
Fri, 13 Sep 2019 11:04:46 +0200 | |
changeset 58173 | 6a30ad1cfeec |
parent 54950 | 46ae54c3026d |
permissions | -rw-r--r-- |
36526 | 1 |
/* |
54930
43633b8e24c6
8223595: Consider updating jdk.jshell module description
rfield
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. |
36526 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
39590
5a2a47b882ec
8160035: JShell API: Add javadoc overview and package files
rfield
parents:
38535
diff
changeset
|
26 |
/** |
54930
43633b8e24c6
8223595: Consider updating jdk.jshell module description
rfield
parents:
47216
diff
changeset
|
27 |
* Provides the <em>{@index jshell jshell tool}</em> tool for evaluating |
43633b8e24c6
8223595: Consider updating jdk.jshell module description
rfield
parents:
47216
diff
changeset
|
28 |
* snippets of Java code, and defines a JDK-specific API for modeling and |
43633b8e24c6
8223595: Consider updating jdk.jshell module description
rfield
parents:
47216
diff
changeset
|
29 |
* executing snippets. |
43633b8e24c6
8223595: Consider updating jdk.jshell module description
rfield
parents:
47216
diff
changeset
|
30 |
* The JShell API supports Java Programming Language 'snippet' evaluating |
43633b8e24c6
8223595: Consider updating jdk.jshell module description
rfield
parents:
47216
diff
changeset
|
31 |
* tools, such as Read-Eval-Print Loops (REPLs). |
42843
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
32 |
* Separate packages support building tools, configuring the execution of tools, |
45680
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
33 |
* and programmatically launching the existing Java shell tool. |
42843
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
34 |
* <p> |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
35 |
* The {@link jdk.jshell} is the package for creating 'snippet' evaluating tools. |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
36 |
* Generally, this is only package that would be needed for creating tools. |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
37 |
* </p> |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
38 |
* <p> |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
39 |
* The {@link jdk.jshell.spi} package specifies a Service Provider Interface (SPI) |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
40 |
* for defining execution engine implementations for tools based on the |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
41 |
* {@link jdk.jshell} API. The {@link jdk.jshell.execution} package provides |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
42 |
* standard implementations of {@link jdk.jshell.spi} interfaces and supporting code. It |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
43 |
* also serves as a library of functionality for defining new execution engine |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
44 |
* implementations. |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
45 |
* </p> |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
46 |
* <p> |
45680
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
47 |
* The {@link jdk.jshell.tool} package supports programmatically launching the |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
48 |
* <em>jshell</em> tool. |
42843
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
49 |
* </p> |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
50 |
* <p> |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
51 |
* The {@link jdk.jshell.execution} package contains implementations of the |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
52 |
* interfaces in {@link jdk.jshell.spi}. Otherwise, the four packages are |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
53 |
* independent, operate at different levels, and do not share functionality or |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
54 |
* definitions. |
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
55 |
* </p> |
43770 | 56 |
* |
54950 | 57 |
* @toolGuide jshell |
45680
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
58 |
* |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
59 |
* @provides javax.tools.Tool |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
60 |
* @provides jdk.jshell.spi.ExecutionControlProvider |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
61 |
* @uses jdk.jshell.spi.ExecutionControlProvider |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
62 |
* |
44452
93f6470b1045
8173303: Add module-subgraph images to main platform documentation
mchung
parents:
43770
diff
changeset
|
63 |
* @moduleGraph |
43770 | 64 |
* @since 9 |
39590
5a2a47b882ec
8160035: JShell API: Add javadoc overview and package files
rfield
parents:
38535
diff
changeset
|
65 |
*/ |
36526 | 66 |
module jdk.jshell { |
42969
a48d4f74d322
8168615: JShell API: jdk.jshell.spi should be a pluggable ServiceLoader SPI
rfield
parents:
42843
diff
changeset
|
67 |
requires java.logging; |
36526 | 68 |
requires jdk.compiler; |
45684
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
69 |
requires jdk.internal.ed; |
36526 | 70 |
requires jdk.internal.le; |
40588
b5c32bfa9710
8160089: jshell tool: use new double-dash long-form command-line options
rfield
parents:
39590
diff
changeset
|
71 |
requires jdk.internal.opt; |
36526 | 72 |
|
45684
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
73 |
requires transitive java.compiler; |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
74 |
requires transitive java.prefs; |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
75 |
requires transitive jdk.jdi; |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
76 |
|
36526 | 77 |
exports jdk.jshell; |
45684
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
78 |
exports jdk.jshell.execution; |
38535
4a25025e0b0d
8156101: JShell SPI: Provide a pluggable execution control SPI
rfield
parents:
36526
diff
changeset
|
79 |
exports jdk.jshell.spi; |
42843
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
80 |
exports jdk.jshell.tool; |
41934
a4da50688dc7
8167636: jshell tool: Edit Pad should be in its own module
rfield
parents:
40588
diff
changeset
|
81 |
|
42969
a48d4f74d322
8168615: JShell API: jdk.jshell.spi should be a pluggable ServiceLoader SPI
rfield
parents:
42843
diff
changeset
|
82 |
uses jdk.jshell.spi.ExecutionControlProvider; |
41934
a4da50688dc7
8167636: jshell tool: Edit Pad should be in its own module
rfield
parents:
40588
diff
changeset
|
83 |
uses jdk.internal.editor.spi.BuildInEditorProvider; |
42843
a8d83044a192
8170162: jshell tool: no mechanism to programmatically launch
rfield
parents:
42413
diff
changeset
|
84 |
|
45684
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
85 |
provides javax.tools.Tool with |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
86 |
jdk.internal.jshell.tool.JShellToolProvider; |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
87 |
provides jdk.jshell.spi.ExecutionControlProvider with |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
88 |
jdk.jshell.execution.JdiExecutionControlProvider, |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
89 |
jdk.jshell.execution.LocalExecutionControlProvider, |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
90 |
jdk.jshell.execution.FailOverExecutionControlProvider; |
36526 | 91 |
} |