langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/remote/RemoteCodes.java
equal
deleted
inserted
replaced
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package jdk.internal.jshell.remote; |
26 package jdk.internal.jshell.remote; |
27 |
27 |
28 import java.util.regex.Pattern; |
|
29 |
|
30 /** |
28 /** |
31 * Communication constants shared between the main process and the remote |
29 * Communication constants shared between the main process and the remote |
32 * execution process |
30 * execution process |
33 * @author Robert Field |
31 * @author Robert Field |
34 */ |
32 */ |
44 public static final int RESULT_SUCCESS = 100; |
42 public static final int RESULT_SUCCESS = 100; |
45 public static final int RESULT_FAIL = 101; |
43 public static final int RESULT_FAIL = 101; |
46 public static final int RESULT_EXCEPTION = 102; |
44 public static final int RESULT_EXCEPTION = 102; |
47 public static final int RESULT_CORRALLED = 103; |
45 public static final int RESULT_CORRALLED = 103; |
48 public static final int RESULT_KILLED = 104; |
46 public static final int RESULT_KILLED = 104; |
49 |
|
50 // String constants |
|
51 public static final String REPL_PACKAGE = "REPL"; |
|
52 public static final String REPL_CLASS_PREFIX = "$JShell$"; |
|
53 public static final String DOIT_METHOD_NAME = "do_it$"; |
|
54 public static final Pattern PREFIX_PATTERN = Pattern.compile( |
|
55 "(" + REPL_PACKAGE + "\\.)?" + |
|
56 "(?<class>" + Pattern.quote(REPL_CLASS_PREFIX) + |
|
57 "\\w+" + ")" + "[\\$\\.]?"); |
|
58 } |
47 } |