Generic Interpreter 1.2
Private API

gi
Class Lexicon.NonMatch

java.lang.Object
  extended bygi.Lexicon.Expression
      extended bygi.Lexicon.Alphabet
          extended bygi.Lexicon.Match
              extended bygi.Lexicon.NonMatch
Enclosing class:
Lexicon

protected static class Lexicon.NonMatch
extends Lexicon.Match

This class implements an Alphabet containing all except some characters.

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

Field Summary
 
Fields inherited from class gi.Lexicon.Match
A
 
Fields inherited from class gi.Lexicon.Expression
f, i
 
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
(package private)  boolean contains(char a)
          Indicates whether a character occurs in this Alphabet.
(package private)  Lexicon.Expression copy()
          Creates a copy of this Alphabet, 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
 

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

contains

boolean contains(char a)

Indicates whether a character occurs in this Alphabet.

Overrides:
contains in class Lexicon.Match
Parameters:
a - the character whose status is requested.
Returns:
true if a occurs in this Alphabet; false otherwise.

copy

Lexicon.Expression copy()

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

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

 

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