Class StringWrapper.Reflower

  • Enclosing class:
    StringWrapper

    private static class StringWrapper.Reflower
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int columnLimit  
      private java.lang.String input  
      private com.sun.tools.javac.util.Position.LineMap lineMap  
      private java.lang.String separator  
      private com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit  
    • Constructor Summary

      Constructors 
      Constructor Description
      Reflower​(int columnLimit, java.lang.String input)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) com.google.common.collect.TreeRangeMap<java.lang.Integer,​java.lang.String> getReflowReplacements()  
      private void indentTextBlocks​(com.google.common.collect.TreeRangeMap<java.lang.Integer,​java.lang.String> replacements, java.util.List<com.sun.source.tree.Tree> textBlocks)  
      private void wrapLongStrings​(com.google.common.collect.TreeRangeMap<java.lang.Integer,​java.lang.String> replacements, java.util.List<com.sun.source.util.TreePath> longStringLiterals)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • input

        private final java.lang.String input
      • columnLimit

        private final int columnLimit
      • separator

        private final java.lang.String separator
      • unit

        private final com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit
      • lineMap

        private final com.sun.tools.javac.util.Position.LineMap lineMap
    • Method Detail

      • getReflowReplacements

        com.google.common.collect.TreeRangeMap<java.lang.Integer,​java.lang.String> getReflowReplacements()
      • indentTextBlocks

        private void indentTextBlocks​(com.google.common.collect.TreeRangeMap<java.lang.Integer,​java.lang.String> replacements,
                                      java.util.List<com.sun.source.tree.Tree> textBlocks)
      • wrapLongStrings

        private void wrapLongStrings​(com.google.common.collect.TreeRangeMap<java.lang.Integer,​java.lang.String> replacements,
                                     java.util.List<com.sun.source.util.TreePath> longStringLiterals)