Package classycle.util
Class StringPatternSequence
- java.lang.Object
-
- classycle.util.StringPatternSequence
-
- All Implemented Interfaces:
StringPattern
- Direct Known Subclasses:
AndStringPattern
,OrStringPattern
public abstract class StringPatternSequence extends java.lang.Object implements StringPattern
Sequence ofStringPatterns
.- Author:
- Franz-Josef Elmer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<StringPattern>
_patterns
-
Constructor Summary
Constructors Modifier Constructor Description protected
StringPatternSequence(StringPattern[] pattern)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
appendPattern(StringPattern pattern)
Appends the specified pattern.protected abstract java.lang.String
getOperatorSymbol()
Returns the operator symbol for pretty printing.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface classycle.util.StringPattern
matches
-
-
-
-
Field Detail
-
_patterns
protected final java.util.List<StringPattern> _patterns
-
-
Constructor Detail
-
StringPatternSequence
protected StringPatternSequence(StringPattern[] pattern)
-
-
Method Detail
-
appendPattern
public void appendPattern(StringPattern pattern)
Appends the specified pattern.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getOperatorSymbol
protected abstract java.lang.String getOperatorSymbol()
Returns the operator symbol for pretty printing. Needed bytoString()
.
-
-