|
Generic Interpreter 1.3 Private API |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgi.Lexicon.Expression
gi.Lexicon.Alphabet
gi.Lexicon.Range
protected static class Lexicon.Range
This class implements an containing the characters in a range.Alphabet
| Field Summary | |
|---|---|
private char |
a1
The first character in the range. |
private char |
a2
The last character in the range. |
| Fields inherited from class gi.Lexicon.Expression |
|---|
f, i |
| Constructor Summary | |
|---|---|
Lexicon.Range(char a1,
char a2)
Constructs an Alphabet containing the characters in a range, and builds the NFA constructed from this Expression. |
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a clone of this Alphabet, and replicates the NFA constructed from this Expression. |
(package private) boolean |
contains(char a)
Indicates whether a character occurs in this Alphabet. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final char a1
The first character in the range.
private final char a2
The last character in the range.
| Constructor Detail |
|---|
public Lexicon.Range(char a1,
char a2)
Constructs an Alphabet containing the characters in a range, and builds the NFA constructed from this Expression.
a1 - the first character in the range.a2 - the last character in the range.| Method Detail |
|---|
boolean contains(char a)
Indicates whether a character occurs in this Alphabet.
contains in class Lexicon.Alphabeta - the character whose status is requested.
true if a occurs in this Alphabet; false otherwise.public Object clone()
Creates a clone of this Alphabet, and replicates the NFA constructed from this Expression.
clone in class Lexicon.ExpressionAlphabet.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||