langtools/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysis.java
changeset 46921 9ce97d94faa6
parent 46185 f4c981fc7818
equal deleted inserted replaced
46920:af01204af815 46921:9ce97d94faa6
   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);