Package classycle.util
Class AndStringPattern
- java.lang.Object
-
- classycle.util.StringPatternSequence
-
- classycle.util.AndStringPattern
-
- All Implemented Interfaces:
StringPattern
public class AndStringPattern extends StringPatternSequence
Logical AND Operation on a sequence ofStringPatterns
.- Author:
- Franz-Josef Elmer
-
-
Field Summary
-
Fields inherited from class classycle.util.StringPatternSequence
_patterns
-
-
Constructor Summary
Constructors Constructor Description AndStringPattern(StringPattern... pattern)
Creates instance with specified patterns.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getOperatorSymbol()
Returns the operator symbol for pretty printing.boolean
matches(java.lang.String string)
Returnfalse
if a pattern in the sequence returnsfalse
.-
Methods inherited from class classycle.util.StringPatternSequence
appendPattern, toString
-
-
-
-
Constructor Detail
-
AndStringPattern
public AndStringPattern(StringPattern... pattern)
Creates instance with specified patterns.
-
-
Method Detail
-
matches
public boolean matches(java.lang.String string)
Returnfalse
if a pattern in the sequence returnsfalse
. Otherwisetrue
is returned.- Parameters:
string
- String to be matched. Can be null.
-
getOperatorSymbol
protected java.lang.String getOperatorSymbol()
Description copied from class:StringPatternSequence
Returns the operator symbol for pretty printing. Needed bytoString()
.- Specified by:
getOperatorSymbol
in classStringPatternSequence
-
-