Package com.google.googlejavaformat.java
Class StringWrapper.Reflower
- java.lang.Object
-
- com.google.googlejavaformat.java.StringWrapper.Reflower
-
- Enclosing class:
- StringWrapper
private static class StringWrapper.Reflower extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classStringWrapper.Reflower.LongStringsAndTextBlockScanner
-
Field Summary
Fields Modifier and Type Field Description private intcolumnLimitprivate java.lang.Stringinputprivate com.sun.tools.javac.util.Position.LineMaplineMapprivate java.lang.Stringseparatorprivate com.sun.tools.javac.tree.JCTree.JCCompilationUnitunit
-
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 voidindentTextBlocks(com.google.common.collect.TreeRangeMap<java.lang.Integer,java.lang.String> replacements, java.util.List<com.sun.source.tree.Tree> textBlocks)private voidwrapLongStrings(com.google.common.collect.TreeRangeMap<java.lang.Integer,java.lang.String> replacements, java.util.List<com.sun.source.util.TreePath> longStringLiterals)
-
-
-
Constructor Detail
-
Reflower
Reflower(int columnLimit, java.lang.String input) throws FormatterException- Throws:
FormatterException
-
-
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)
-
-