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'.
 
Methods inherited from interface org.inxar.syntacs.grammar.regular.RegularExpression
clone, follow, getFirstSet, getLastSet, isNullable
 

Method Detail

getInternal

public RegularExpression getInternal()
Returns the regex this closure 'wraps' Thus for a closure kleene ('a*'), kleene.getInternal() would return 'a'.