net.sourceforge.jeval
Class EvaluationHelper

java.lang.Object
  extended by net.sourceforge.jeval.EvaluationHelper

public class EvaluationHelper
extends java.lang.Object


Constructor Summary
EvaluationHelper()
           
 
Method Summary
static boolean isSpace(char character)
          Determines if a character is a space or white space.
static java.lang.String replaceAll(java.lang.String expression, java.lang.String oldString, java.lang.String newString)
          Replaces all old string within the expression with new strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvaluationHelper

public EvaluationHelper()
Method Detail

replaceAll

public static java.lang.String replaceAll(java.lang.String expression,
                                          java.lang.String oldString,
                                          java.lang.String newString)
Replaces all old string within the expression with new strings.

Parameters:
expression - The string being processed.
oldString - The string to replace.
newString - The string to replace the old string with.
Returns:
The new expression with all of the old strings replaced with new strings.

isSpace

public static boolean isSpace(char character)
Determines if a character is a space or white space.

Parameters:
character - The character being evaluated.
Returns:
True if the character is a space or white space and false if not.


Copyright (C) 2002-2007 Robert Breidecker.