Package com.palantir.javaformat.java
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 TypeMethodDescriptioncom.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
Marks regions that can be partially formatted, used to determine the actual ranges that will be formatted when ranges are requested.
-