|
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.Alphabet
|
+--gi.Lexicon.Match
This class implements an denoting the set of characters in a string.Expression
| Field Summary | |
(package private) Integer |
accept
The accept state of the NFA recognizing the language denoted by this Expression. |
(package private) char |
c
The character whose singleton set is denoted. |
(package private) Integer |
initial
The initial state of the NFA recognizing the language denoted by this Expression. |
(package private) Lexicon.Set |
list
The Alphabet list whose set is denoted. |
(package private) String |
string
The string whose set of characters is denoted. |
| Constructor Summary | |
|
Lexicon.Match(char c)
Constructs an Expression denoting the set containing a character. |
(package private) |
Lexicon.Match(Integer from,
char c,
Integer to)
Constructs an Expression denoting the set containing a character. |
(package private) |
Lexicon.Match(Lexicon.Set list)
Constructs an Expression denoting the set of characters in an Alphabet list. |
|
Lexicon.Match(String string)
Constructs an Expression denoting the set of characters in a string. |
| Method Summary | |
(package private) boolean |
contains(char c)
Indicates whether a character is in the set denoted by this Expression. |
(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 |
char c
The character whose singleton set is denoted.
Lexicon.Set list
The Alphabet list whose set is denoted.
String string
The string whose set of characters is denoted.
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.Match(char c)
Constructs an Expression denoting the set containing a character. An NFA recognizing the language denoted by this Expression is constructed.
c - the character whose singleton set is denoted.
Lexicon.Match(Integer from,
char c,
Integer to)
Constructs an Expression denoting the set containing a character. An NFA recognizing the language denoted by this Expression is constructed.
c - the character whose singleton set is denoted.Lexicon.Match(Lexicon.Set list)
Constructs an Expression denoting the set of characters in an Alphabet list. An NFA recognizing the language denoted by this Expression is constructed.
list - the Alphabet list whose set is denoted.public Lexicon.Match(String string)
Constructs an Expression denoting the set of characters in a string. An NFA recognizing the language denoted by this Expression is constructed.
string - the string of characters whose set is denoted.| Method Detail |
boolean contains(char c)
Indicates whether a character is in the set denoted by this Expression.
contains in class Lexicon.Alphabetc - the character whose status is requested.
true if c is in the set denoted by this Expression; false otherwise.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 | ||||||||