Class LinesLabel

java.lang.Object
org.variantsync.diffdetective.variation.LinesLabel
All Implemented Interfaces:
Label

public class LinesLabel extends Object implements Label
A label containing a list of lines represented as Strings.
  • Field Details

  • Constructor Details

    • LinesLabel

      public LinesLabel()
    • LinesLabel

      public LinesLabel(List<String> lines)
    • LinesLabel

      public LinesLabel(List<String> lines, List<String> trailingLines)
  • Method Details

    • ofCodeBlock

      public static LinesLabel ofCodeBlock(String codeBlock)
    • getLines

      public List<String> getLines()
      Description copied from interface: Label
      Returns the lines which need to be printed before the children of a node. Most lines associated with a node should be included in this list, for example, #ifs are stored here.
      Specified by:
      getLines in interface Label
    • getTrailingLines

      public List<String> getTrailingLines()
      Description copied from interface: Label
      Returns the lines which need to be printed after the children of a node. For example, #endifs are stored as trailing lines.
      Specified by:
      getTrailingLines in interface Label
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public LinesLabel clone()
      Description copied from interface: Label
      Creates a deep copy of this label.
      Specified by:
      clone in interface Label
      Overrides:
      clone in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object