|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inxar.syntacs.grammar.regular.RECharClass
Standard CharClass
implementation.
Constructor Summary | |
RECharClass(REGrammar grammar)
Constructs the RECharClass on the given
REGrammar . |
Method Summary | |
void |
add(char c)
Adds the given char to the list of alternatives. |
void |
add(char lo,
char hi)
Adds the given range of characters to the character class. |
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. |
IntSet |
getLastSet()
Returns the IntSet of Intervals which
are visible at the logical end of the the expression. |
boolean |
isNegated()
True if this is a negated character class |
void |
isNegated(boolean value)
Sets the negate flag |
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 RECharClass(REGrammar grammar)
RECharClass
on the given
REGrammar
.Method Detail |
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 boolean isNegated()
isNegated
in interface CharClass
public void isNegated(boolean value)
isNegated
in interface CharClass
public void add(char c)
CharClass
given
char to the list of alternatives.add
in interface CharClass
public void add(char lo, char hi)
CharClass
CharClass.add('a','z');
add
in interface CharClass
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 |