|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.grammar.ambiguity.ApproximationStrategy
dk.brics.grammar.ambiguity.RegularApproximation
dk.brics.grammar.ambiguity.RegularApproximation2
public class RegularApproximation2
Variation of RegularApproximation that adds extra approximation on unfolded grammars.
| Field Summary |
|---|
| Fields inherited from class dk.brics.grammar.ambiguity.ApproximationStrategy |
|---|
debug, g, HORIZONTAL_NOT_APPLICABLE, out, VERTICAL_NOT_APPLICABLE |
| Constructor Summary | |
|---|---|
RegularApproximation2()
Constructs a new approximator. |
|
| Method Summary | |
|---|---|
HorizontalOverlapString |
checkHorizontalOverlap(Production p,
int index)
Conservatively checks horizontal overlap in a production. |
VerticalOverlapString |
checkVerticalOverlap(Production p1,
Production p2)
Conservatively checks vertical overlap of two productions of the same nonterminal. |
String |
getName()
Returns the name "regular2". |
void |
init()
Initializes for the current grammar. |
| Methods inherited from class dk.brics.grammar.ambiguity.RegularApproximation |
|---|
verticalDone |
| Methods inherited from class dk.brics.grammar.ambiguity.ApproximationStrategy |
|---|
horizontalCheck, horizontalDone, init, printStatistics, verticalCheck |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegularApproximation2()
| Method Detail |
|---|
public HorizontalOverlapString checkHorizontalOverlap(Production p,
int index)
ApproximationStrategyApproximationStrategy.HORIZONTAL_NOT_APPLICABLE.
checkHorizontalOverlap in class RegularApproximationp - a productionindex - division point
ApproximationStrategy.HORIZONTAL_NOT_APPLICABLE can be used as a "don't know" value
public VerticalOverlapString checkVerticalOverlap(Production p1,
Production p2)
ApproximationStrategyApproximationStrategy.VERTICAL_NOT_APPLICABLE.
checkVerticalOverlap in class RegularApproximationp1 - one productionp2 - another production
ApproximationStrategy.VERTICAL_NOT_APPLICABLE can be used as a "don't know" valuepublic String getName()
getName in class RegularApproximationpublic void init()
ApproximationStrategyApproximationStrategy.g.
init in class RegularApproximation
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||