Constructor and Description |
---|
ExpressionOperation(FunctionSignature signature,
Expression expression,
ExpressionOrigin origin)
Creates new instance of
ExpressionOperation . |
Modifier and Type | Method and Description |
---|---|
Object |
execute(Interpreter interpreter,
List<Expression> args,
boolean variadicArgAsList,
InterpreterStackTrace stackTrace)
Executes the expression.
|
Expression |
getExpression()
Returns the underlying expression.
|
ExpressionOrigin |
getOrigin()
Returns the expression origin.
|
String |
toString() |
public ExpressionOperation(FunctionSignature signature, Expression expression, ExpressionOrigin origin)
ExpressionOperation
.signature
- expression
- origin
- the expression originpublic Object execute(Interpreter interpreter, List<Expression> args, boolean variadicArgAsList, InterpreterStackTrace stackTrace) throws ErrorException
Operation
execute
in interface Operation
variadicArgAsList
- if true
, the variadic argument is given as expression
returning a list; if false
, the variadic argument
is given as several individual expressionsstackTrace
- a stack trace passed to the interpreterErrorException
public Expression getExpression()
public ExpressionOrigin getOrigin()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.