org.apache.geronimo.gshell.bootstrap
Class ExpressionEvaluator

java.lang.Object
  extended by org.apache.geronimo.gshell.bootstrap.ExpressionEvaluator

public class ExpressionEvaluator
extends Object

Simple expression evaluator for handling ${variable} expansion.

Version:
$Rev: 726406 $ $Date: 2008-12-14 10:51:27 +0100 (Sun, 14 Dec 2008) $

Constructor Summary
ExpressionEvaluator(Properties props)
           
 
Method Summary
 String evaluate(String input)
           
static String evaluate(String input, Properties props)
           
static String getSystemProperty(String key)
           
static String getSystemProperty(String key, String def)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionEvaluator

public ExpressionEvaluator(Properties props)
Method Detail

evaluate

public String evaluate(String input)
                throws IllegalArgumentException
Throws:
IllegalArgumentException

evaluate

public static String evaluate(String input,
                              Properties props)
                       throws IllegalArgumentException
Throws:
IllegalArgumentException

getSystemProperty

public static String getSystemProperty(String key,
                                       String def)

getSystemProperty

public static String getSystemProperty(String key)


Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.