Generic Interpreter 1.2
Private API

gi
Class Lexicon.Singleton

java.lang.Object
  extended bygi.Lexicon.Expression
      extended bygi.Lexicon.Singleton
Enclosing class:
Lexicon

protected static class Lexicon.Singleton
extends Lexicon.Expression

This class implements an Expression expressing a singleton language.

Version:
1.2
Author:
© 1999-2004 Craig A. Rich <carich@csupomona.edu>

Field Summary
private  String x
          The string whose singleton language is expressed.
 
Fields inherited from class gi.Lexicon.Expression
f, i
 
Constructor Summary
Lexicon.Singleton(String x)
          Constructs an Expression expressing a singleton language, and builds the NFA constructed from this Expression.
 
Method Summary
(package private)  Lexicon.Expression copy()
          Creates a copy of this Expression, and replicates the NFA constructed from this Expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

private final String x

The string whose singleton language is expressed.

Constructor Detail

Lexicon.Singleton

public Lexicon.Singleton(String x)

Constructs an Expression expressing a singleton language, and builds the NFA constructed from this Expression.

Parameters:
x - the string whose singleton language is expressed.
Method Detail

copy

Lexicon.Expression copy()

Creates a copy of this Expression, and replicates the NFA constructed from this Expression.

Specified by:
copy in class Lexicon.Expression
Returns:
a copy of this Expression.

 

© 1999-2004 Craig A. Rich <carich@csupomona.edu>