JFlex

Class IntCharSet


public final class IntCharSet
extends java.lang.Object

CharSet implemented with intervalls [fixme: optimizations possible]

Constructor Summary

IntCharSet()
IntCharSet(Interval intervall)
IntCharSet(Vector chars)
IntCharSet(char c)

Method Summary

IntCharSet
add(IntCharSet set)
void
add(Interval intervall)
void
add(char c)
IntCharSet
and(IntCharSet set)
boolean
contains(char singleChar)
boolean
containsElements()
IntCharSet
copy()
Return a (deep) copy of this char set
boolean
equals(Object o)
o instanceof Interval
IntCharSet
getCaseless()
Create a caseless version of this charset.
Interval
getNext()
int
numIntervalls()
void
sub(IntCharSet set)
String
toString()
Make a string representation of this char set.

Constructor Details

IntCharSet

public IntCharSet()

IntCharSet

public IntCharSet(Interval intervall)

IntCharSet

public IntCharSet(Vector chars)

IntCharSet

public IntCharSet(char c)

Method Details

add

public IntCharSet add(IntCharSet set)

add

public void add(Interval intervall)

add

public void add(char c)

and

public IntCharSet and(IntCharSet set)

contains

public boolean contains(char singleChar)

containsElements

public boolean containsElements()

copy

public IntCharSet copy()
Return a (deep) copy of this char set
Returns:
the copy

equals

public boolean equals(Object o)
o instanceof Interval

getCaseless

public IntCharSet getCaseless()
Create a caseless version of this charset.

The caseless version contains all characters of this char set, and additionally all lower/upper/title case variants of the characters in this set.

Returns:
a caseless copy of this set

getNext

public Interval getNext()

numIntervalls

public int numIntervalls()

sub

public void sub(IntCharSet set)

toString

public String toString()
Make a string representation of this char set.
Returns:
a string representing this char set.