| java.lang.Object xtc.tree.Node xtc.parser.CharRange
CharRange | public class CharRange extends Node implements Comparable<CharRange>(Code) | | A character range for a character classs.
See Also: CharClass author: Robert Grimm version: $Revision: 1.10 $ |
Field Summary | |
final public char | first The first character. | final public char | last The last character. |
Constructor Summary | |
public | CharRange(char c) Create a new single-character range with the specified character. | public | CharRange(char first, char last) Create a new character range with the specified characters. |
Method Summary | |
public int | compareTo(CharRange other) | public boolean | contains(char c) Determine whether this character range contains the specified
character.
Parameters: c - The character. | public int | count() Determine the number of characters covered by this character
range. | public boolean | equals(Object o) | public int | hashCode() |
first | final public char first(Code) | | The first character.
|
last | final public char last(Code) | | The last character.
|
CharRange | public CharRange(char c)(Code) | | Create a new single-character range with the specified character.
Parameters: c - The character. |
CharRange | public CharRange(char first, char last)(Code) | | Create a new character range with the specified characters.
Parameters: first - The first character. Parameters: last - The last character. |
contains | public boolean contains(char c)(Code) | | Determine whether this character range contains the specified
character.
Parameters: c - The character. true if this character range containsthe specified character. |
count | public int count()(Code) | | Determine the number of characters covered by this character
range.
The number of characters for this character range. |
hashCode | public int hashCode()(Code) | | |
|
|