接口 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.
  • 方法概要

    修饰符和类型
    方法
    说明
    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.
  • 方法详细资料

    • 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.