Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8159118 JShell API: IDE integration support
  3. JDK-8159111

JShell API: Add access to wrappers and dependencies

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b126

      Description

      Add queries which show the entered user Snippet of Java code wrapped into a complete valid unit of Java code. Also add a query for dependencies of a Snippet.

      In SourceCodeAnalysis, add:

          public interface SnippetWrapper {
             String source();
             String wrapped();
             String fullClassName();
             Snippet.Kind kind();
             int sourceToWrappedPosition(int pos);
             int wrappedToSourcePosition(int pos);
          }

          SnippetWrapper wrapper(Snippet snippet);
          List<SnippetWrapper> wrappers(String input);
          List<Snippet> dependents(Snippet snippet);

        Attachments

          Activity

            People

            Assignee:
            rfield Robert Field
            Reporter:
            rfield Robert Field
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: