Generic Interpreter 1.3
Protected API

gi
Class Lexicon.Union

java.lang.Object
  extended by gi.Lexicon.Expression
      extended by gi.Lexicon.Union
All Implemented Interfaces:
Cloneable
Enclosing class:
Lexicon

protected static class Lexicon.Union
extends Lexicon.Expression

This class implements an Expression expressing the union of two regular languages.

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

Constructor Summary
Lexicon.Union(Lexicon.Expression e1, Lexicon.Expression e2)
          Constructs an Expression expressing the union of two regular languages, and builds the NFA constructed from this Expression.
 
Method Summary
 Object clone()
          Creates a clone of this Expression, and replicates the NFA constructed from this Expression.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lexicon.Union

public Lexicon.Union(Lexicon.Expression e1,
                     Lexicon.Expression e2)

Constructs an Expression expressing the union of two regular languages, and builds the NFA constructed from this Expression.

Parameters:
e1 - the left operand Expression.
e2 - the right operand Expression.
Method Detail

clone

public Object clone()

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

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

 

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