Constructor and Description |
---|
JavaOperation(String className,
String methodName,
FunctionSignature signature)
Creates new instance of
JavaOperation . |
Modifier and Type | Method and Description |
---|---|
Object |
execute(Interpreter interpreter,
List<Expression> args,
boolean variadicArgAsList,
InterpreterStackTrace stackTrace)
Executes the expression.
|
Class<?>[] |
getArgClasses()
Returns argument classes
|
String |
getClassName()
Returns the class name.
|
String |
getMethodName()
Returns the method name.
|
FunctionSignature |
getSignature()
Returns the operation signature.
|
public JavaOperation(String className, String methodName, FunctionSignature signature)
JavaOperation
.className
- methodName
- signature
- NullPointerException
- if any of the arguments is nullpublic 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 Class<?>[] getArgClasses()
public String getClassName()
public String getMethodName()
public FunctionSignature getSignature()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.