org.metasyntactic.math.automata.classes
Class CharacterClass

java.lang.Object
  |
  +--org.metasyntactic.math.automata.classes.CharacterClass
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
Defined, Digit, Graph, ISOControl, Letter, LetterOrDigit, LowerCase, PosixBlank, PosixDigit, PosixGraph, PosixHexDigit, PosixLetter, PosixLetterOrDigit, PosixLowerCase, PosixNonZeroDigit, PosixOctalDigit, PosixPunctuation, PosixUpperCase, Print, Punctuation, SpaceChar, TitleCase, UpperCase, WhiteSpace

public abstract class CharacterClass
extends java.lang.Object
implements java.lang.Comparable

This class represents all the character class mappings that that java.lang.Character class provides. i.e. This class will map '3' to: {Digit, LetterOrDigit, Defined} These are the following definitions contained within "UNICODE_MAPPING" [:LetterOrDigit:] Unicode Alphanumeric characters. [:Letter:] Unicode Alphabetic characters. [:WhiteSpace:] Unicode whitespace characters. [:ISOControl:] Unicode Control characters. [:Digit:] Unicode Numeric characters. [:Graph:] Equal to [[:Letter:][:Digit:][:Punctuation:]] [:LowerCase:] Lower-case alphabetic characters. [:Print:] Equal to ^[:ISOControl:] [:Punctuation:] Equal to ^[[:Letter:][:Digit:][:ISOControl:][:WhiteSpace:]] [:UpperCase:] Upper-case alphabetic characters. [:HexDigit:] Characters that are hexadecimal digits.


Field Summary
static java.util.Map CLASSES
           
 
Constructor Summary
protected CharacterClass()
          Creates new CharacterClasses
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASSES

public static final java.util.Map CLASSES
Constructor Detail

CharacterClass

protected CharacterClass()
Creates new CharacterClasses

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

main

public static void main(java.lang.String[] args)