Package net.sourceforge.plantuml.utils
Class BlocLines
java.lang.Object
net.sourceforge.plantuml.utils.BlocLines
- All Implemented Interfaces:
Iterable<StringLocated>
-
Method Summary
Modifier and TypeMethodDescriptionadd(StringLocated s) cleanList(MultilinesStrategy strategy) static BlocLinescreate()expandsNewline(boolean reallyExpands) static BlocLinesfrom(List<StringLocated> lines) static BlocLinesgetAt(int i) getFirst()getLast()charstatic BlocLinesstatic booleanisSpaceOrTab(char c) iterator()static BlocLinesload(InputStream is, LineLocation location) static BlocLinesload(SFile f, LineLocation location) static intoverrideLastLine(String last) removeFewChars(int nb) removeStartingAndEnding(String data, int removeAtEnd) static BlocLinessingle(StringLocated single) static BlocLinessingleString(String single) intsize()subExtract(int margeStart, int margeEnd) subList(int start, int end) toString()trim()trimSmart(int referenceLine) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
toString
-
expandsNewline
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
from
-
toDisplay
- Throws:
NoSuchColorException
-
single
-
singleString
-
fromArray
-
getWithNewlines
-
create
-
add
-
addString
-
getLinesAsStringForSprite
-
size
public int size() -
getAt
-
getFirst
-
getLast
-
cleanList
-
trim
-
removeEmptyLines
-
removeEmptyColumns
-
getLastChar
public char getLastChar() -
removeStartingAndEnding
-
overrideLastLine
-
toSingleLineWithHiddenNewLine
-
trimSmart
-
nbStartingSpace
-
isSpaceOrTab
public static boolean isSpaceOrTab(char c) -
subExtract
-
subList
-
iterator
- Specified by:
iteratorin interfaceIterable<StringLocated>
-
eventuallyMoveBracket
-
eventuallyMoveAllEmptyBracket
-
removeFewChars
-
inspector
-
inspectorWithNewlines
-
getLocation
-