Package net.sf.eBus.util.regex
Class Literal
- java.lang.Object
-
- net.sf.eBus.util.regex.Component
-
- net.sf.eBus.util.regex.Literal
-
- All Implemented Interfaces:
Serializable
public final class Literal extends Component
This regular expression component matches one 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.intliteral()Returns the literal character.StringtoString()Returns a textual representation of a literal.-
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.
-
equalTo
public boolean equalTo(char c)
Returnstrueif this component is equal to the characterc; returnsfalseotherwise.
-
greaterThan
public boolean greaterThan(char c)
Returnstrueif this component is greater than the characterc; returnsfalseotherwise.- Specified by:
greaterThanin classComponent- Parameters:
c- Test against this character.- Returns:
trueif this component is greater than the characterc; returnsfalseotherwise.
-
literal
public int literal()
Returns the literal character.- Returns:
- the literal character.
-
-