Generic Interpreter 0.9
Protected API

gi
Class Lexicon.NonMatch

java.lang.Object
  |
  +--gi.Lexicon.Expression
        |
        +--gi.Lexicon.Alphabet
              |
              +--gi.Lexicon.Match
                    |
                    +--gi.Lexicon.NonMatch
Enclosing class:
Lexicon

protected static class Lexicon.NonMatch
extends Lexicon.Match

This class implements an Expression denoting the set of characters not in a string.

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

Constructor Summary
Lexicon.NonMatch(char c)
          Constructs an Expression denoting the set of characters except one.
Lexicon.NonMatch(String string)
          Constructs an Expression denoting the set of characters not in a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lexicon.NonMatch

public Lexicon.NonMatch(char c)

Constructs an Expression denoting the set of characters except one. An NFA recognizing the language denoted by this Expression is constructed.

Parameters:
c - the character whose complement is denoted.

Lexicon.NonMatch

public Lexicon.NonMatch(String string)

Constructs an Expression denoting the set of characters not in a string. An NFA recognizing the language denoted by this Expression is constructed.

Parameters:
string - the string of characters whose complement is denoted.

 

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