equal
deleted
inserted
replaced
151 * Restrictions on the input are as in {@link JShell#eval}. |
151 * Restrictions on the input are as in {@link JShell#eval}. |
152 * <p> |
152 * <p> |
153 * Only preliminary compilation is performed, sufficient to build the |
153 * Only preliminary compilation is performed, sufficient to build the |
154 * {@code Snippet}. Snippets known to be erroneous, are returned as |
154 * {@code Snippet}. Snippets known to be erroneous, are returned as |
155 * {@link ErroneousSnippet}, other snippets may or may not be in error. |
155 * {@link ErroneousSnippet}, other snippets may or may not be in error. |
156 * <p> |
156 * |
157 * @param input The input String to convert |
157 * @param input The input String to convert |
158 * @return usually a singleton list of Snippet, but may be empty or multiple |
158 * @return usually a singleton list of Snippet, but may be empty or multiple |
159 * @throws IllegalStateException if the {@code JShell} instance is closed. |
159 * @throws IllegalStateException if the {@code JShell} instance is closed. |
160 */ |
160 */ |
161 public abstract List<Snippet> sourceToSnippets(String input); |
161 public abstract List<Snippet> sourceToSnippets(String input); |