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

    • b126

      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);

            rfield Robert Field (Inactive)
            rfield Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: