public class SJavaParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static IExpressionParser |
parser
The java parser.
|
Constructor and Description |
---|
SJavaParser() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
evaluateExpression(java.lang.String exptxt,
IValueFetcher fetcher)
Evaluates a java expression.
|
static java.lang.Object |
evaluateExpression(java.lang.String exptxt,
java.lang.String[] imports,
IValueFetcher fetcher,
java.lang.ClassLoader classloader)
Evaluates a java expression.
|
static java.lang.Object |
evaluateExpressionPotentially(java.lang.String text,
java.lang.String[] imports,
IValueFetcher fetcher,
java.lang.ClassLoader cl)
Evaluate a string that is possiby an expression.
|
static java.lang.Object |
getParsedValue(java.lang.Object value,
java.lang.String[] imports,
IValueFetcher fetcher,
java.lang.ClassLoader classloader)
Get a parsed value.
|
static java.lang.Object |
getProperty(java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.String name,
java.lang.String[] imports,
IValueFetcher fetcher,
java.lang.ClassLoader classloader)
Get a parsed property.
|
static boolean |
isExpressionString(java.lang.String text)
Check if string is an expression.
|
static IParsedExpression |
parseExpression(java.lang.String exptxt,
java.lang.String[] imports,
java.lang.ClassLoader classloader)
Evaluates a java expression.
|
static IParsedExpression |
parseExpression(UnparsedExpression ue,
java.lang.String[] imports,
java.lang.ClassLoader classloader)
Parse the expression.
|
protected static final IExpressionParser parser
public static java.lang.Object evaluateExpression(java.lang.String exptxt, IValueFetcher fetcher)
fetcher
- Expression parameters can be supplied as value fetcher.public static java.lang.Object evaluateExpression(java.lang.String exptxt, java.lang.String[] imports, IValueFetcher fetcher, java.lang.ClassLoader classloader)
fetcher
- Expression parameters can be supplied as value fetcher.public static IParsedExpression parseExpression(java.lang.String exptxt, java.lang.String[] imports, java.lang.ClassLoader classloader)
public static IParsedExpression parseExpression(UnparsedExpression ue, java.lang.String[] imports, java.lang.ClassLoader classloader)
public static java.lang.Object getProperty(java.util.Map<java.lang.String,java.lang.Object> properties, java.lang.String name, java.lang.String[] imports, IValueFetcher fetcher, java.lang.ClassLoader classloader)
name
- The property name.public static java.lang.Object getParsedValue(java.lang.Object value, java.lang.String[] imports, IValueFetcher fetcher, java.lang.ClassLoader classloader)
value
- The value.public static java.lang.Object evaluateExpressionPotentially(java.lang.String text, java.lang.String[] imports, IValueFetcher fetcher, java.lang.ClassLoader cl)
text
- The expression text.imports
- The imports.fetcher
- The fetcher.cl
- The classloader.public static boolean isExpressionString(java.lang.String text)
text
- The expression text.