All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.util.SmalltalkTokenizer

java.lang.Object
   |
   +----jp.kyasu.graphics.TextCharacterIterator
           |
           +----jp.kyasu.awt.util.LanguageTokenizer
                   |
                   +----jp.kyasu.awt.util.SmalltalkTokenizer

public class SmalltalkTokenizer
extends LanguageTokenizer
The SmalltalkTokenizer class parses a text into "tokens". The text should represent a Smalltalk program.

Version:
10 Jun 1998
Author:
Kazuki YASUMATSU

Variable Index

 o Keywords
The keywords of the Smalltalk languages.

Constructor Index

 o SmalltalkTokenizer(Text, int, int)
Construct a SmalltalkTokenizer with the specified text and range.

Method Index

 o nextToken()
Parses the next token from the text of this tokenizer.

Variables

 o Keywords
 public static final Set Keywords
The keywords of the Smalltalk languages.

Constructors

 o SmalltalkTokenizer
 public SmalltalkTokenizer(Text text,
                           int begin,
                           int end)
Construct a SmalltalkTokenizer with the specified text and range.

Parameters:
text - the text to be parsed.
begin - the beginning index to parse, inclusive.
end - the ending index to parse, exclusive.

Methods

 o nextToken
 public int nextToken()
Parses the next token from the text of this tokenizer.

Returns:
the type of the token.
Overrides:
nextToken in class LanguageTokenizer
See Also:
EOT, OTHER, KEYWORD, CONSTANT, MULTILINE_CONSTANT, COMMENT, MULTILINE_COMMENT

All Packages  Class Hierarchy  This Package  Previous  Next  Index