org.inxar.syntacs.grammar.regular
Interface Closure
- All Superinterfaces:
- Cloneable, RegularExpression
- All Known Implementing Classes:
- REClosure
- public interface Closure
- extends RegularExpression
The Closure
interface is the abstraction for the
Kleene closure construct ('*'). It 'wraps' an internal regular
expression accessible via the getInternal()
method.
Method Summary |
RegularExpression |
getInternal()
Returns the regex this closure 'wraps' Thus for a closure
kleene ('a*'), kleene.getInternal() would return
'a'. |
getInternal
public RegularExpression getInternal()
- Returns the regex this closure 'wraps' Thus for a closure
kleene ('a*'),
kleene.getInternal()
would return
'a'.