net.sourceforge.jeval
Class ArgumentTokenizer

java.lang.Object
  extended by net.sourceforge.jeval.ArgumentTokenizer
All Implemented Interfaces:
java.util.Enumeration

public class ArgumentTokenizer
extends java.lang.Object
implements java.util.Enumeration

This class allow for tokenizer methods to be called on a String of arguments.


Field Summary
 char defaultDelimiter
          The default delimitor.
 
Constructor Summary
ArgumentTokenizer(java.lang.String arguments, char delimiter)
          Constructor that takes a String of arguments and a delimitoer.
 
Method Summary
 boolean hasMoreElements()
          Indicates if there are more elements.
 boolean hasMoreTokens()
          Indicates if there are more tokens.
 java.lang.Object nextElement()
          Returns the next element.
 java.lang.String nextToken()
          Returns the next token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultDelimiter

public char defaultDelimiter
The default delimitor.

Constructor Detail

ArgumentTokenizer

public ArgumentTokenizer(java.lang.String arguments,
                         char delimiter)
Constructor that takes a String of arguments and a delimitoer.

Parameters:
arguments - The String of srguments to be tokenized.
delimiter - The argument tokenizer.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Indicates if there are more elements.

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
True if there are more elements and false if not.

hasMoreTokens

public boolean hasMoreTokens()
Indicates if there are more tokens.

Returns:
True if there are more tokens and false if not.

nextElement

public java.lang.Object nextElement()
Returns the next element.

Specified by:
nextElement in interface java.util.Enumeration
Returns:
The next element.

nextToken

public java.lang.String nextToken()
Returns the next token.

Returns:
The next element.


Copyright (C) 2002-2007 Robert Breidecker.