org.apache.beehive.netui.script.el.util
Class ParseUtils

Object
  extended by ParseUtils

public class ParseUtils
extends Object


Method Summary
static Object convertType(Object value, Class toType)
           
static Object evaluate(String exprStr, NetUIVariableResolver vr)
           
static String getContextString(String[] contexts)
           
static Object getProperty(Object value, String name, PropertyCache cache)
           
static Class getPropertyType(Object value, String name, PropertyCache cache)
           
static Throwable getRootCause(Throwable t)
           
static ParsedExpression parse(String exprStr)
           
static void printStack(String message, Throwable t)
           
static void update(String exprStr, Object value, NetUIVariableResolver vr)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static ParsedExpression parse(String exprStr)

evaluate

public static Object evaluate(String exprStr,
                              NetUIVariableResolver vr)

update

public static void update(String exprStr,
                          Object value,
                          NetUIVariableResolver vr)

getPropertyType

public static Class getPropertyType(Object value,
                                    String name,
                                    PropertyCache cache)

getProperty

public static Object getProperty(Object value,
                                 String name,
                                 PropertyCache cache)

convertType

public static Object convertType(Object value,
                                 Class toType)

printStack

public static void printStack(String message,
                              Throwable t)

getContextString

public static String getContextString(String[] contexts)

getRootCause

public static Throwable getRootCause(Throwable t)