JFlex

Class IntCharSet

public final class IntCharSet extends Object

CharSet implemented with intervalls [fixme: optimizations possible]
Constructor Summary
IntCharSet()
IntCharSet(char c)
IntCharSet(Interval intervall)
IntCharSet(Vector chars)
Method Summary
IntCharSetadd(IntCharSet set)
voidadd(Interval intervall)
voidadd(char c)
IntCharSetand(IntCharSet set)
booleancontains(char singleChar)
booleancontainsElements()
IntCharSetcopy()
Return a (deep) copy of this char set
booleanequals(Object o)
o instanceof Interval
IntCharSetgetCaseless()
Create a caseless version of this charset.
IntervalgetNext()
intnumIntervalls()
voidsub(IntCharSet set)
StringtoString()
Make a string representation of this char set.

Constructor Detail

IntCharSet

public IntCharSet()

IntCharSet

public IntCharSet(char c)

IntCharSet

public IntCharSet(Interval intervall)

IntCharSet

public IntCharSet(Vector chars)

Method Detail

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.