public class SJavaParser extends Object
Constructor and Description |
---|
SJavaParser() |
Modifier and Type | Method and Description |
---|---|
static Object |
evaluateExpression(String exptxt,
IValueFetcher fetcher)
Evaluates a java expression.
|
static Object |
evaluateExpression(String exptxt,
String[] imports,
IValueFetcher fetcher,
ClassLoader classloader)
Evaluates a java expression.
|
static Object |
getParsedValue(Object value,
String[] imports,
IValueFetcher fetcher,
ClassLoader classloader)
Get a parsed value.
|
static Object |
getProperty(Map<String,Object> properties,
String name,
String[] imports,
IValueFetcher fetcher,
ClassLoader classloader)
Get a parsed property.
|
static IParsedExpression |
parseExpression(String exptxt,
String[] imports,
ClassLoader classloader)
Evaluates a java expression.
|
static IParsedExpression |
parseExpression(UnparsedExpression ue,
String[] imports,
ClassLoader classloader)
Parse the expression.
|
public static Object evaluateExpression(String exptxt, IValueFetcher fetcher)
fetcher
- Expression parameters can be supplied as value fetcher.public static Object evaluateExpression(String exptxt, String[] imports, IValueFetcher fetcher, ClassLoader classloader)
fetcher
- Expression parameters can be supplied as value fetcher.public static IParsedExpression parseExpression(String exptxt, String[] imports, ClassLoader classloader)
public static IParsedExpression parseExpression(UnparsedExpression ue, String[] imports, ClassLoader classloader)
public static Object getProperty(Map<String,Object> properties, String name, String[] imports, IValueFetcher fetcher, ClassLoader classloader)
name
- The property name.public static Object getParsedValue(Object value, String[] imports, IValueFetcher fetcher, ClassLoader classloader)
value
- The value.Copyright © 2013. All Rights Reserved.