- All Superinterfaces:
TextPosition
Interface for a reader or writer of data in a textual format. It has a
TextPosition and can collect
messages.-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault voiddefault voidaddMessage(TextFormatMessage message) Adds aTextFormatMessageto themessages.default voidaddMessage(TextFormatMessageType type, String text) Adds aTextFormatMessagefor the currentTextPosition.default voidaddWarning(String text) Methods inherited from interface io.github.mmm.base.text.TextPosition
getColumn, getLine
-
Method Details
-
addInfo
- Parameters:
text- thetext of the message.
-
addWarning
- Parameters:
text- thetext of the message.
-
addError
- Parameters:
text- thetext of the message.
-
addMessage
Adds aTextFormatMessagefor the currentTextPosition.- Parameters:
type- thetype of the message.text- thetext of the message.
-
addMessage
Adds aTextFormatMessageto themessages.- Parameters:
message- theTextFormatMessageto add.
-
getMessages
List<TextFormatMessage> getMessages()- Returns:
- the
ListofTextFormatMessages.
-