|
Generic Interpreter 1.3 Protected API |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgi.Lexicon.Expression
gi.Lexicon.Repetition
protected static class Lexicon.Repetition
This class implements an expressing the repetition of a regular language.Expression
| Constructor Summary | |
|---|---|
Lexicon.Repetition(Lexicon.Expression e1,
int min,
int max)
Constructs an Expression expressing the repetition of a regular language, and builds the NFA constructed from this Expression. |
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a clone of this Expression, and replicates the NFA constructed from this Expression. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lexicon.Repetition(Lexicon.Expression e1,
int min,
int max)
Constructs an Expression expressing the repetition of a regular language, and builds the NFA constructed from this Expression. Large finite values for the minimum or maximum cause the NFA constructed from the operand Expression to be copied many times, resulting in a space-inefficient NFA.
e1 - the operand Expression.min - the minimum number of times e1 is repeated. If negative, it is assumed to be zero.max - the maximum number of times e1 is repeated. If negative, it is assumed to be infinity.| Method Detail |
|---|
public Object clone()
Creates a clone of this Expression, and replicates the NFA constructed from this Expression.
clone in class Lexicon.ExpressionExpression.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||