Package eu.bandm.tools.message
Class Patterns
java.lang.Object
eu.bandm.tools.message.Patterns
Paisley patterns for messages.
- 
Method SummaryModifier 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- 
mKindMatches any Message with the given kind.- Parameters:
- kind- the message kind to match
- Returns:
- the pattern
 
- 
mKindMatches any Message with the given kind. Convenience abbreviation.- Parameters:
- kind- the message kind to match
- Returns:
- the pattern
 
- 
mTextMatches the text of the SimpleMessage.- Parameters:
- text- to be matched by the message text data
- Returns:
- the pattern
 
- 
mTextTests 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
 
- 
mTextStartsWithTests 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
 
- 
mLocTests the location of the SimpleMessage.- Parameters:
- loc- has to match the messages location
- Returns:
- the pattern
 
- 
mDocIdTests 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
 
- 
mDocIdTests 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
 
- 
mLineTests 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:
 
- 
mLineTests 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:
 
 
-