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
26 package jdk.jshell;
27
28 import jdk.jshell.Key.StatementKey;
29
30 /**
31 * Snippet for a statement.
32 * The Kind is {@link jdk.jshell.Snippet.Kind#STATEMENT}.
33 * <p>
34 * <code>StatementSnippet</code> is immutable: an access to
35 * any of its methods will always return the same result.
36 * and thus is thread-safe.
37 *
38 * @since 9
39 * @jls 14.5: Statement.
40 */
41 public class StatementSnippet extends Snippet {
42
43 StatementSnippet(StatementKey key, String userSource, Wrap guts) {
44 super(key, userSource, guts, null, SubKind.STATEMENT_SUBKIND, null);
45 }
46 }
|
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
26 package jdk.jshell;
27
28 import jdk.jshell.Key.StatementKey;
29
30 /**
31 * Snippet for a statement.
32 * The Kind is {@link jdk.jshell.Snippet.Kind#STATEMENT}.
33 * <p>
34 * <code>StatementSnippet</code> is immutable: an access to
35 * any of its methods will always return the same result.
36 * and thus is thread-safe.
37 *
38 * @since 9
39 * @jls 14.5 Statements
40 */
41 public class StatementSnippet extends Snippet {
42
43 StatementSnippet(StatementKey key, String userSource, Wrap guts) {
44 super(key, userSource, guts, null, SubKind.STATEMENT_SUBKIND, null);
45 }
46 }
|