Generic Interpreter 1.2
Private API

gi
Class Lexicon.Union

java.lang.Object
  extended bygi.Lexicon.Expression
      extended bygi.Lexicon.Union
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.2
Author:
© 1999-2004 Craig A. Rich <carich@csupomona.edu>

Field Summary
private  Lexicon.Expression e1
          The left operand Expression.
private  Lexicon.Expression e2
          The right operand Expression.
 
Fields inherited from class gi.Lexicon.Expression
f, i
 
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
(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

e1

private final Lexicon.Expression e1

The left operand Expression.


e2

private final Lexicon.Expression e2

The right operand Expression.

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

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>