Package classycle.util
Class AndStringPattern
java.lang.Object
classycle.util.StringPatternSequence
classycle.util.AndStringPattern
- All Implemented Interfaces:
StringPattern
Logical AND Operation on a sequence of
StringPatterns.- Author:
- Franz-Josef Elmer
-
Field Summary
Fields inherited from class classycle.util.StringPatternSequence
_patterns -
Constructor Summary
ConstructorsConstructorDescriptionAndStringPattern(StringPattern... pattern) Creates instance with specified patterns. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the operator symbol for pretty printing.booleanReturnfalseif a pattern in the sequence returnsfalse.Methods inherited from class classycle.util.StringPatternSequence
appendPattern, toString
-
Constructor Details
-
AndStringPattern
Creates instance with specified patterns.
-
-
Method Details
-
matches
Returnfalseif a pattern in the sequence returnsfalse. Otherwisetrueis returned.- Parameters:
string- String to be matched. Can be null.
-
getOperatorSymbol
Description copied from class:StringPatternSequenceReturns the operator symbol for pretty printing. Needed bytoString().- Specified by:
getOperatorSymbolin classStringPatternSequence
-