Package com.scriptbasic.utility
Class ExpressionUtility
java.lang.Object
com.scriptbasic.utility.ExpressionUtility
- Author:
- Peter Verhas date June 28, 2012
-
Method Summary
Modifier and TypeMethodDescriptionstatic RightValuecallBasicFunction(Interpreter interpreter, RightValue[] argumentValues, CommandSub commandSub, String functionName) static StringconvertToString(Expression expression) Convert an expression of the form 'a.b.c.d' into a String.static List<RightValue> evaluateExpressionList(Interpreter interpreter, ExpressionList expressionList) static Object[]getObjectArray(List<RightValue> args, Method method, Interpreter interpreter)
-
Method Details
-
callBasicFunction
public static RightValue callBasicFunction(Interpreter interpreter, RightValue[] argumentValues, CommandSub commandSub, String functionName) throws ScriptBasicException - Throws:
ScriptBasicException
-
getObjectArray
public static Object[] getObjectArray(List<RightValue> args, Method method, Interpreter interpreter) throws ScriptBasicException - Throws:
ScriptBasicException
-
evaluateExpressionList
public static List<RightValue> evaluateExpressionList(Interpreter interpreter, ExpressionList expressionList) throws ScriptBasicException - Throws:
ScriptBasicException
-
convertToString
Convert an expression of the form 'a.b.c.d' into a String.- Parameters:
expression- parameter- Returns:
- the string containing the dots and the identifiers
- Throws:
AnalysisException- when the expression does not match the format
-