Package net.sourceforge.plantuml.command
Class BlocLines
- java.lang.Object
-
- net.sourceforge.plantuml.command.BlocLines
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.CharSequence>
public class BlocLines extends java.lang.Object implements java.lang.Iterable<java.lang.CharSequence>
-
-
Constructor Summary
Constructors Constructor Description BlocLines()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlocLines
add2(java.lang.CharSequence s)
BlocLines
cleanList2(MultilinesStrategy strategy)
BlocLines
eventuallyMoveBracket()
java.lang.CharSequence
get499(int i)
java.lang.CharSequence
getFirst499()
java.lang.CharSequence
getLast499()
char
getLastChar()
java.util.List<java.lang.CharSequence>
getLines()
static BlocLines
getWithNewlines(java.lang.CharSequence s)
java.util.Iterator<java.lang.CharSequence>
iterator()
static BlocLines
load(java.io.File f)
BlocLines
removeEmptyColumns()
BlocLines
removeStartingAndEnding2(java.lang.String data)
static BlocLines
single(java.lang.CharSequence single)
int
size()
BlocLines
subExtract(int margeStart, int margeEnd)
BlocLines
subList(int start, int end)
Display
toDisplay()
BlocLines
toSingleLineWithHiddenNewLine()
java.lang.String
toString()
BlocLines
trim(boolean removeEmptyLines)
BlocLines
trimSmart(int referenceLine)
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
load
public static BlocLines load(java.io.File f) throws java.io.IOException
- Throws:
java.io.IOException
-
toDisplay
public Display toDisplay()
-
single
public static BlocLines single(java.lang.CharSequence single)
-
getWithNewlines
public static BlocLines getWithNewlines(java.lang.CharSequence s)
-
add2
public BlocLines add2(java.lang.CharSequence s)
-
getLines
public java.util.List<java.lang.CharSequence> getLines()
-
size
public int size()
-
get499
public java.lang.CharSequence get499(int i)
-
getFirst499
public java.lang.CharSequence getFirst499()
-
getLast499
public java.lang.CharSequence getLast499()
-
cleanList2
public BlocLines cleanList2(MultilinesStrategy strategy)
-
trim
public BlocLines trim(boolean removeEmptyLines)
-
removeEmptyColumns
public BlocLines removeEmptyColumns()
-
getLastChar
public char getLastChar()
-
removeStartingAndEnding2
public BlocLines removeStartingAndEnding2(java.lang.String data)
-
toSingleLineWithHiddenNewLine
public BlocLines toSingleLineWithHiddenNewLine()
-
trimSmart
public BlocLines trimSmart(int referenceLine)
-
subExtract
public BlocLines subExtract(int margeStart, int margeEnd)
-
subList
public BlocLines subList(int start, int end)
-
iterator
public java.util.Iterator<java.lang.CharSequence> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<java.lang.CharSequence>
-
eventuallyMoveBracket
public BlocLines eventuallyMoveBracket()
-
-