Package net.sf.eBus.util.regex
Class AnyChar
- java.lang.Object
-
- net.sf.eBus.util.regex.Component
-
- net.sf.eBus.util.regex.AnyChar
-
- All Implemented Interfaces:
Serializable
public final class AnyChar extends Component
This regular expression component matches any character. This pattern element has an associated minimum and maximum range. The component must match at least the minimum count and up to the maximum count (inclusive).- Author:
- Charles Rapp
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.eBus.util.regex.Component
ANY_CHAR, CHARACTER_SET, LITERAL, mIndex, mMaximumSize, mMinimumSize, mType, NO_MAX_MATCH_LIMIT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequalTo(char c)Returnstrueif this component is equal to the characterc; returnsfalseotherwise.booleangreaterThan(char c)Returnstrueif this component is greater than the characterc; returnsfalseotherwise.booleanlessThan(char c)Returnstrueif this component is less than the characterc; returnsfalseotherwise.StringtoString()Returns a textual representation of a single character match.-
Methods inherited from class net.sf.eBus.util.regex.Component
appendSize, index, maximumSize, minimumSize, type
-
-
-
-
Method Detail
-
lessThan
public boolean lessThan(char c)
Returnstrueif this component is less than the characterc; returnsfalseotherwise. Any character is always less than the specified character ifcis not the minimally allowed character value.
-
equalTo
public boolean equalTo(char c)
Returnstrueif this component is equal to the characterc; returnsfalseotherwise. Any character is always equal to the specified character.
-
greaterThan
public boolean greaterThan(char c)
Returnstrueif this component is greater than the characterc; returnsfalseotherwise. Any character is always greater than the specified character ifcis not the maximally allowed character.- Specified by:
greaterThanin classComponent- Parameters:
c- Test against this character.- Returns:
trueif this component is greater than the characterc; returnsfalseotherwise.
-
-