|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.grammar.operations.FirstLastFinder
public class FirstLastFinder
Contains method for finding FIRST and LAST sets.
FIRST(N) is the set of chars that may appear as the first char in strings derived from N. LAST(N) is the set of chars that may appear as the last char in strings derived from N.
SelectFollowsFinder
Constructor Summary | |
---|---|
FirstLastFinder(Grammar g,
boolean expanded)
Computes sets for the given grammar. |
Method Summary | |
---|---|
Map<Entity,CharSet> |
getEntityFirst()
Returns map from entities to charsets representing FIRST information. |
Map<Entity,CharSet> |
getEntityLast()
Returns map from entities to charsets representing LAST information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FirstLastFinder(Grammar g, boolean expanded)
g
- grammarexpanded
- if set, assume alphabet has been expandedMethod Detail |
---|
public Map<Entity,CharSet> getEntityFirst()
public Map<Entity,CharSet> getEntityLast()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |