|
Generic Interpreter 0.9 Private API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gi.Lexicon.Expression | +--gi.Lexicon.Alphabet | +--gi.Lexicon.UnicodeCategory
This class implements an
denoting the set of characters in a Unicode category.Expression
Field Summary | |
private byte |
category
The Unicode category whose set is denoted. |
Fields inherited from class gi.Lexicon.Expression |
accept, initial |
Constructor Summary | |
Lexicon.UnicodeCategory(byte category)
Constructs an Expression denoting the set of characters in a Unicode category. |
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, registerNatives, toString, wait, wait, wait |
Field Detail |
private final byte category
The Unicode category whose set is denoted.
Constructor Detail |
public Lexicon.UnicodeCategory(byte category)
Constructs an Expression
denoting the set of characters in a Unicode category. An NFA recognizing the language denoted by this Expression
is constructed. The class Character
defines byte constants for each of the Unicode category types.
category
- the Unicode category whose set is denoted.Character
Method Detail |
boolean contains(char c)
Indicates whether a character is in the set denoted by this Expression
.
contains
in class Lexicon.Alphabet
c
- the character whose status is requested.true
if c
is in this UnicodeCategory
; 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.Expression
Expression
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |