Package com.scriptbasic.utility
Class ExpressionUtility
- java.lang.Object
-
- com.scriptbasic.utility.ExpressionUtility
-
public final class ExpressionUtility extends java.lang.Object- Author:
- Peter Verhas date June 28, 2012
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RightValuecallBasicFunction(Interpreter interpreter, RightValue[] argumentValues, CommandSub commandSub, java.lang.String functionName)static java.lang.StringconvertToString(Expression expression)Convert an expression of the form 'a.b.c.d' into a String.static java.util.List<RightValue>evaluateExpressionList(Interpreter interpreter, ExpressionList expressionList)static java.lang.Object[]getObjectArray(java.util.List<RightValue> args, java.lang.reflect.Method method, Interpreter interpreter)
-
-
-
Method Detail
-
callBasicFunction
public static RightValue callBasicFunction(Interpreter interpreter, RightValue[] argumentValues, CommandSub commandSub, java.lang.String functionName) throws ScriptBasicException
- Throws:
ScriptBasicException
-
getObjectArray
public static java.lang.Object[] getObjectArray(java.util.List<RightValue> args, java.lang.reflect.Method method, Interpreter interpreter) throws ScriptBasicException
- Throws:
ScriptBasicException
-
evaluateExpressionList
public static java.util.List<RightValue> evaluateExpressionList(Interpreter interpreter, ExpressionList expressionList) throws ScriptBasicException
- Throws:
ScriptBasicException
-
convertToString
public static java.lang.String convertToString(Expression expression) throws AnalysisException
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
-
-