Class OperationRuntime
java.lang.Object
com.googlecode.aviator.runtime.op.OperationRuntime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsOpFunction(Map<String, Object> env, OperatorType opType) static AviatorObjecteval(AviatorObject left, AviatorObject right, Map<String, Object> env, OperatorType opType) Eval with binary operatorstatic AviatorObjecteval(AviatorObject arg, Map<String, Object> env, OperatorType opType) Eval with unary operatorstatic AviatorObjecteval(AviatorObject left, Map<String, Object> env, AviatorObject right, OperatorType opType) Just likeeval(AviatorObject, AviatorObject, Map, OperatorType), but with difference arguments order.static AviatorObjecteval(Map<String, Object> env, AviatorObject[] args, OperatorType opType) Eval with arguments array.static AviatorObjectevalOpFunction(Map<String, Object> env, AviatorObject[] args, OperatorType opType, AviatorFunction func) static final booleanhasRuntimeContext(Map<String, Object> env, OperatorType opType)
-
Constructor Details
-
OperationRuntime
public OperationRuntime()
-
-
Method Details
-
eval
Eval with arguments array.- Parameters:
args-opType-- Returns:
-
evalOpFunction
public static AviatorObject evalOpFunction(Map<String, Object> env, AviatorObject[] args, OperatorType opType, AviatorFunction func) -
eval
Eval with unary operator- Parameters:
arg-env-opType-- Returns:
-
eval
public static AviatorObject eval(AviatorObject left, Map<String, Object> env, AviatorObject right, OperatorType opType) Just likeeval(AviatorObject, AviatorObject, Map, OperatorType), but with difference arguments order.- Parameters:
left-env-right-opType-- Returns:
-
eval
public static AviatorObject eval(AviatorObject left, AviatorObject right, Map<String, Object> env, OperatorType opType) Eval with binary operator- Parameters:
left-right-env-opType-- Returns:
-
hasRuntimeContext
-
containsOpFunction
-