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