Interface InputMetadata


@Immutable @Immutable public interface InputMetadata
Records metadata about the input, namely existing blank lines that we might want to preserve, as well as what ranges can be partially formatted.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.collect.ImmutableMap<Integer,OpsBuilder.BlankLineWanted>
    Remembers preferences from the input about whether blank lines are wanted or not at a given token index.
    default com.google.common.collect.ImmutableRangeSet<Integer>
    Marks regions that can be partially formatted, used to determine the actual ranges that will be formatted when ranges are requested.
  • Method Details

    • blankLines

      com.google.common.collect.ImmutableMap<Integer,OpsBuilder.BlankLineWanted> blankLines()
      Remembers preferences from the input about whether blank lines are wanted or not at a given token index.
    • partialFormatRanges

      @Default default com.google.common.collect.ImmutableRangeSet<Integer> partialFormatRanges()
      Marks regions that can be partially formatted, used to determine the actual ranges that will be formatted when ranges are requested.