Generic Interpreter 1.2
Private API

gi
Class Lexicon.UnicodeCategory

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

protected static class Lexicon.UnicodeCategory
extends Lexicon.Alphabet

This class implements an Alphabet containing the characters in a Unicode general category.

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

Field Summary
private  byte category
          The byte representing the Unicode general category.
 
Fields inherited from class gi.Lexicon.Expression
f, i
 
Constructor Summary
Lexicon.UnicodeCategory(byte category)
          Constructs an Alphabet containing the characters in a Unicode general category, 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
 

Field Detail

category

private final byte category

The byte representing the Unicode general category.

Constructor Detail

Lexicon.UnicodeCategory

public Lexicon.UnicodeCategory(byte category)

Constructs an Alphabet containing the characters in a Unicode general category, and builds the NFA constructed from this Expression. The class Character defines byte constants representing each of the Unicode general categories.

Parameters:
category - The byte representing the Unicode general category.
See Also:
Character
Method Detail

contains

boolean contains(char a)

Indicates whether a character occurs in this Alphabet.

Specified by:
contains in class Lexicon.Alphabet
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.

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

 

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