Main Page | Packages | Class List | File List | Class Members

dfabuilder.TokenSet Class Reference

List of all members.

Detailed Description

This class is used to group together all tokens that can be treated in the same manner by a DFA. This might be all digits, all alphabetical characters etc.

Author:
Iain Robinson
Version:
1.0


Public Member Functions

 TokenSet (String name, char[] tokens)
boolean contains (Character character)

Public Attributes

String tokens
String name


Constructor & Destructor Documentation

dfabuilder.TokenSet.TokenSet String  name,
char[]  tokens
 

Creates a new TokenSet object.

Parameters:
name The name for the TokenSet.
tokens A character array of all the tokens to be contained in the set.


Member Function Documentation

boolean dfabuilder.TokenSet.contains Character  character  ) 
 

Tests if the TokenSet contains the specified character.

Parameters:
character The character to check for.
Returns:
true if the character is found in the TokenSet, false otherwise.


Member Data Documentation

String dfabuilder.TokenSet.name
 

The name of the TokenSet.

String dfabuilder.TokenSet.tokens
 

All the characters belonging to the TokenSet.


Generated on Tue Feb 21 11:52:24 2006 for DFA Builder by  doxygen 1.4.1