|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inxar.syntacs.grammar.regular.REUnion
Standard Union
implementation.
Constructor Summary | |
REUnion()
Constructs the REUnion . |
Method Summary | |
Union |
addAllele(RegularExpression e)
Adds the given RegularExpression to the list of
alternatives. |
int |
alleles()
Returns the number of alternatives. |
Object |
clone()
See the general explanation of clone() given above. |
void |
follow()
Triggers the process of computing the follow sets. |
RegularExpression |
getAllele(int index)
|
RegularExpression[] |
getAlleles()
Returns the list of alternatives which are currently in the set as an array. |
IntSet |
getFirstSet()
Returns the IntSet of Intervals which
are visible at the logical beginning of the the expression. |
IntSet |
getLastSet()
Returns the IntSet of Intervals which
are visible at the logical end of the the expression. |
boolean |
isNullable()
Returns true if this
RegularExpression either *is* Epsilon
or derives it. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public REUnion()
REUnion
.Method Detail |
public Union addAllele(RegularExpression e)
Union
RegularExpression
to the list of
alternatives. If the alternative is already in the set of
alternatives, no action is taken. This method returns the
Union
simply to support a coding style reminiscent
of java.lang.StringBuffer
.addAllele
in interface Union
public String toString()
toString
in class Object
public boolean isNullable()
RegularExpression
true
if this
RegularExpression
either *is* Epsilon
or derives it.isNullable
in interface RegularExpression
public IntSet getFirstSet()
RegularExpression
IntSet
of Intervals
which
are visible at the logical beginning of the the expression.getFirstSet
in interface RegularExpression
public IntSet getLastSet()
RegularExpression
IntSet
of Intervals
which
are visible at the logical end of the the expression.getLastSet
in interface RegularExpression
public void follow()
RegularExpression
follow
in interface RegularExpression
public int alleles()
Union
alleles
in interface Union
public RegularExpression getAllele(int index)
public RegularExpression[] getAlleles()
Union
getAlleles
in interface Union
public Object clone() throws CloneNotSupportedException
RegularExpression
clone()
given above.clone
in interface RegularExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |