Searched refs:characterRanges (Results 1 – 4 of 4) sorted by relevance
45 String formatted = formatter.formatSource(input, characterRanges(input).asRanges()); in call()63 private RangeSet<Integer> characterRanges(String input) { in characterRanges() method in FormatFileCallable64 final RangeSet<Integer> characterRanges = TreeRangeSet.create(); in characterRanges() local67 characterRanges.add(Range.closedOpen(0, input.length())); in characterRanges()68 return characterRanges; in characterRanges()71 characterRanges.addAll(Formatter.lineRangesToCharRanges(input, parameters.lines())); in characterRanges()79 characterRanges.add( in characterRanges()83 return characterRanges; in characterRanges()
265 public String formatSource(String input, Collection<Range<Integer>> characterRanges) in formatSource() argument267 return JavaOutput.applyReplacements(input, getFormatReplacements(input, characterRanges)); in formatSource()279 String input, Collection<Range<Integer>> characterRanges) throws FormatterException { in getFormatReplacements() argument285 javaInput = ModifierOrderer.reorderModifiers(javaInput, characterRanges); in getFormatReplacements()295 RangeSet<Integer> tokenRangeSet = javaInput.characterRangesToTokenRanges(characterRanges); in getFormatReplacements()308 final RangeSet<Integer> characterRanges = TreeRangeSet.create(); in lineRangesToCharRanges() local316 characterRanges.add(range); in lineRangesToCharRanges()318 return characterRanges; in lineRangesToCharRanges()
87 static JavaInput reorderModifiers(JavaInput javaInput, Collection<Range<Integer>> characterRanges) in reorderModifiers() argument94 RangeSet<Integer> tokenRanges = javaInput.characterRangesToTokenRanges(characterRanges); in reorderModifiers()
664 public RangeSet<Integer> characterRangesToTokenRanges(Collection<Range<Integer>> characterRanges) in characterRangesToTokenRanges() argument667 for (Range<Integer> characterRange0 : characterRanges) { in characterRangesToTokenRanges()