Class LinesLabel
java.lang.Object
org.variantsync.diffdetective.variation.LinesLabel
- All Implemented Interfaces:
Label
A label containing a list of lines represented as
Strings.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLinesLabel(List<String> lines) LinesLabel(List<String> lines, List<String> trailingLines) -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a deep copy of this label.booleangetLines()Returns the lines which need to be printed before the children of a node.Returns the lines which need to be printed after the children of a node.static LinesLabelofCodeBlock(String codeBlock) toString()Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.variantsync.diffdetective.variation.Label
withoutTimeDependentState, withTimeDependentStateFrom
-
Field Details
-
lines
-
trailingLines
-
-
Constructor Details
-
LinesLabel
public LinesLabel() -
LinesLabel
-
LinesLabel
-
-
Method Details
-
ofCodeBlock
-
getLines
Description copied from interface:LabelReturns 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. -
getTrailingLines
Description copied from interface:LabelReturns the lines which need to be printed after the children of a node. For example,#endifs are stored as trailing lines.- Specified by:
getTrailingLinesin interfaceLabel
-
toString
-
clone
Description copied from interface:LabelCreates a deep copy of this label. -
equals
-