org.inxar.syntacs.grammar.regular
Interface Option
- All Superinterfaces:
- Cloneable, RegularExpression
- All Known Implementing Classes:
- REOption
- public interface Option
- extends RegularExpression
The Option
interface is another 'utility' regex which
abstracts the '?' operator. It is not a 'fundamental' regular
language construct. Therefore, the Option
'a?' is a
shortcut for saying '(a|e)' where 'e' represents
Epsilon
.
getInternal
public RegularExpression getInternal()
- Returns the
RegularExpression
which this '?'
modifies.