org.inxar.syntacs.grammar.regular
Interface CharString
- All Superinterfaces:
- Cloneable, RegularExpression
- All Known Implementing Classes:
- RECharString
- public interface CharString
- extends RegularExpression
The CharString
interface is a 'utility' regex object
that takes care of the work of concatenating individual intervals.
The head and tail of the expression are accessible.
getHead
public RegularExpression getHead()
- Returns the
RegularExpression
at the head of the
string. This is nearly always a Concatenation
unless the CharString
object is built on a single
character string, like "a", in which case a concatenation would
be impossible.
getTail
public RegularExpression getTail()
- Returns the
RegularExpression
at the tail of the
string. This is nearly always a Concatenation
unless the CharString
object is built on a single
character string, like "a", in which case a concatenation would
be impossible.