public class RoleUnitFunctionOperation extends java.lang.Object implements CustomCompileToJavaOperation, Operation
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GET_ORGUNIT_METHOD
A name of the method for obtaining an organization unit.
|
static java.lang.String |
GET_ROLE_METHOD
A name of the method for obtaining a role.
|
Constructor and Description |
---|
RoleUnitFunctionOperation(FunctionSignature signature,
java.lang.String methodName,
boolean mapVariant)
Constructs a new operation.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(Interpreter interpreter,
java.util.List<Expression> args,
boolean variadicArgAsList,
InterpreterStackTrace stackTrace)
Executes the expression.
|
java.lang.String |
getCompiledToJavaName(FunctionSignature signature) |
SrcExpression |
getSrcExpression(FunctionSignature signature) |
public static final java.lang.String GET_ROLE_METHOD
public static final java.lang.String GET_ORGUNIT_METHOD
public RoleUnitFunctionOperation(FunctionSignature signature, java.lang.String methodName, boolean mapVariant)
signature
- methodName
- mapVariant
- public java.lang.Object execute(Interpreter interpreter, java.util.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 java.lang.String getCompiledToJavaName(FunctionSignature signature)
getCompiledToJavaName
in interface CustomCompileToJavaOperation
public SrcExpression getSrcExpression(FunctionSignature signature)
getSrcExpression
in interface CustomCompileToJavaOperation
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.