|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inxar.syntacs.grammar.regular.RECharString
Standard CharString
implementation.
Constructor Summary | |
RECharString(REGrammar grammar,
String s)
Constructs the RECharString on the given
REGrammar and input String . |
Method Summary | |
Object |
clone()
See the general explanation of clone() given above. |
void |
follow()
Triggers the process of computing the follow sets. |
IntSet |
getFirstSet()
Returns the IntSet of Intervals which
are visible at the logical beginning of the the expression. |
RegularExpression |
getHead()
Returns the RegularExpression at the head of the
string. |
IntSet |
getLastSet()
Returns the IntSet of Intervals which
are visible at the logical end of the the expression. |
RegularExpression |
getTail()
Returns the RegularExpression at the tail of the
string. |
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 RECharString(REGrammar grammar, String s)
RECharString
on the given
REGrammar
and input String
.Method Detail |
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 RegularExpression getHead()
CharString
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.getHead
in interface CharString
public RegularExpression getTail()
CharString
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.getTail
in interface CharString
public String toString()
toString
in class Object
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 |