|
Generic Interpreter 1.0 Private API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gi.Lexicon.Expression
|
+--gi.Lexicon.Repetition
This class implements an denoting the repetition of a regular language.Expression
| Field Summary | |
(package private) Integer |
accept
The accept state of the NFA recognizing the language denoted by this Expression. |
(package private) Integer |
initial
The initial state of the NFA recognizing the language denoted by this Expression. |
private Lexicon.Expression |
kernel
The Expression denoting the language whose repetition is expressed. |
private int |
max
The maximum number of times kernel is repeated. |
private int |
min
The minimum number of times kernel is repeated. |
| Constructor Summary | |
Lexicon.Repetition(Lexicon.Expression kernel,
int min,
int max)
Constructs an Expression denoting the repetition of a regular language. |
|
| Method Summary | |
(package private) Lexicon.Expression |
copy()
Creates a copy of this Expression. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final Lexicon.Expression kernel
The Expression denoting the language whose repetition is expressed.
private final int max
The maximum number of times kernel is repeated.
private final int min
The minimum number of times kernel is repeated.
Integer accept
The accept state of the NFA recognizing the language denoted by this Expression.
Integer initial
The initial state of the NFA recognizing the language denoted by this Expression.
| Constructor Detail |
public Lexicon.Repetition(Lexicon.Expression kernel,
int min,
int max)
Constructs an Expression denoting the repetition of a regular language. An NFA recognizing the language denoted by this Expression is constructed. Large finite values for the minimum or maximum cause the kernel NFA to be cloned many times, resulting in a space-inefficient NFA.
kernel - the Expression denoting the language whose repetition is expressed.min - the minimum number of times kernel is repeated. If negative, it is assumed to be zero.max - the maximum number of times kernel is repeated. If negative, it is assumed to be infinity.| Method Detail |
Lexicon.Expression copy()
Creates a copy of this Expression. The NFA recognizing the language denoted by this Expression is replicated.
copy in class Lexicon.ExpressionExpression.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||