Package eu.bandm.tools.message
Class MessagePatterns
java.lang.Object
eu.bandm.tools.message.MessagePatterns
Paisley patterns for messages.
-
Method Summary
Modifier and TypeMethodDescription<D> Pattern
<SimpleMessage<D>> Tests the document id of the location of the SimpleMessage.Tests the doc id of the location of the SimpleMessage to be equal to the given argument.mKind
(Message.Kind kind) Matches any Message with the given kind.mKind
(Pattern<? super Message.Kind> kind) Matches any Message with the given kind.Pattern
<SimpleMessage<?>> mLine
(int line) Tests the line number of the location of the SimpleMessage to be equal to the given argument.Pattern
<SimpleMessage<?>> Tests the line number of the location of the SimpleMessage.Pattern
<SimpleMessage<?>> Tests the location of the SimpleMessage.Pattern
<SimpleMessage<?>> Matches the text of the SimpleMessage.Pattern
<SimpleMessage<?>> Tests the text of the SimpleMessage to be equal to the argument.Pattern
<SimpleMessage<?>> mTextStartsWith
(String pref) Tests the text of the SimpleMessage to start with the given argument.
-
Method Details
-
mKind
Matches any Message with the given kind.- Parameters:
kind
- the message kind to match- Returns:
- the pattern
-
mKind
Matches any Message with the given kind. Convenience abbreviation.- Parameters:
kind
- the message kind to match- Returns:
- the pattern
-
mText
Matches the text of the SimpleMessage.- Parameters:
text
- to be matched by the message text data- Returns:
- the pattern
-
mText
Tests the text of the SimpleMessage to be equal to the argument. Convenience abbreviation.- Parameters:
text
- to be equal to the message text data- Returns:
- the pattern
-
mTextStartsWith
Tests the text of the SimpleMessage to start with the given argument. Convenience abbreviation.- Parameters:
pref
- message text data has to start with- Returns:
- the pattern
-
mLoc
Tests the location of the SimpleMessage.- Parameters:
loc
- has to match the messages location- Returns:
- the pattern
-
mDocId
Tests the document id of the location of the SimpleMessage. Convenience abbreviation.- Type Parameters:
D
- the type of the document id- Parameters:
docId
- the pattern which must be mateched by the message location- Returns:
- the pattern
-
mDocId
Tests the doc id of the location of the SimpleMessage to be equal to the given argument. Convenience abbreviation.- Parameters:
docId
- the document id which must be contained in the message location- Returns:
- the pattern
-
mLine
Tests the line number of the location of the SimpleMessage. Convenience abbreviation.- Parameters:
line
- must be matched by the message location reference line- Returns:
- the pattern
- See Also:
-
mLine
Tests the line number of the location of the SimpleMessage to be equal to the given argument. Convenience abbreviation.- Parameters:
line
- must be equal to message location reference line- Returns:
- the pattern
- See Also:
-