Generic Interpreter 1.3
Protected API

gi
Class Lexicon.NonMatch

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

protected static class Lexicon.NonMatch
extends Lexicon.Match

This class implements an Alphabet containing all except some characters.

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

Constructor Summary
Lexicon.NonMatch(char a)
          Constructs an Alphabet containing all characters except one, and builds the NFA constructed from this Expression.
Lexicon.NonMatch(Object A)
          Constructs an Alphabet containing all characters except some, and builds the NFA constructed from this Expression.
 
Method Summary
 Object clone()
          Creates a clone of this Alphabet, 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.NonMatch

public Lexicon.NonMatch(char a)

Constructs an Alphabet containing all characters except one, and builds the NFA constructed from this Expression.

Parameters:
a - the character not in this Alphabet.

Lexicon.NonMatch

public Lexicon.NonMatch(Object A)

Constructs an Alphabet containing all characters except some, and builds the NFA constructed from this Expression.

Parameters:
A - the Character or String of characters not in this Alphabet.
Method Detail

clone

public Object clone()

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

Overrides:
clone in class Lexicon.Match
Returns:
a clone of this Alphabet.

 

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