Generic Interpreter 1.0
Private API

gi
Class Lexicon.Alphabet

java.lang.Object
  |
  +--gi.Lexicon.Expression
        |
        +--gi.Lexicon.Alphabet
Direct Known Subclasses:
Lexicon.Match, Lexicon.PosixClass, Lexicon.Range, Lexicon.UnicodeCategory
Enclosing class:
Lexicon

abstract static class Lexicon.Alphabet
extends Lexicon.Expression

This class implements an Expression denoting a set of characters.

Version:
1.0
Author:
© 1999-2000 Craig A. Rich <carich@acm.org>

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.
 
Constructor Summary
(package private) Lexicon.Alphabet()
           
 
Method Summary
(package private) abstract  boolean contains(char c)
          Indicates whether a character is in this Alphabet.
(package private) abstract  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

accept

Integer accept

The accept state of the NFA recognizing the language denoted by this Expression.


initial

Integer initial

The initial state of the NFA recognizing the language denoted by this Expression.

Constructor Detail

Lexicon.Alphabet

Lexicon.Alphabet()
Method Detail

contains

abstract boolean contains(char c)

Indicates whether a character is in this Alphabet.

Parameters:
c - the character whose status is requested.
Returns:
true if c is in this Alphabet; false otherwise.

copy

abstract Lexicon.Expression copy()

Creates a copy of this Expression. The NFA recognizing the language denoted by this Expression is replicated.

Returns:
a copy of this Expression.

 

© 1999-2000 Craig A. Rich <carich@acm.org>