public class JIPipeExpressionRegistry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JIPipeExpressionRegistry.ColumnOperationEntry
A column operation entry
|
static class |
JIPipeExpressionRegistry.ExpressionFunctionEntry |
Constructor and Description |
---|
JIPipeExpressionRegistry(JIPipe jiPipe) |
Modifier and Type | Method and Description |
---|---|
JIPipeExpressionRegistry.ColumnOperationEntry |
getColumnOperationById(String id)
Returns an operation by ID
|
JIPipe |
getJIPipe() |
Map<String,JIPipeExpressionRegistry.ExpressionFunctionEntry> |
getRegisteredExpressionFunctions()
Registered expression functions.
|
Map<String,JIPipeExpressionRegistry.ColumnOperationEntry> |
getRegisteredTableColumnOperations()
The registered column operations.
|
Map<String,JIPipeExpressionRegistry.ColumnOperationEntry> |
getTableColumnOperationsOfType(Class<? extends ColumnOperation> filterClass)
Returns all operations that are assignable to the filter class
|
void |
registerColumnOperation(String id,
ColumnOperation operation,
String name,
String shortName,
String description)
Registers a new operation.
|
void |
registerExpressionFunction(ExpressionFunction function,
String name,
String description)
Registers an new function that will be usable within expressions.
|
public JIPipeExpressionRegistry(JIPipe jiPipe)
public Map<String,JIPipeExpressionRegistry.ColumnOperationEntry> getRegisteredTableColumnOperations()
public Map<String,JIPipeExpressionRegistry.ExpressionFunctionEntry> getRegisteredExpressionFunctions()
DefaultExpressionEvaluator
.public void registerColumnOperation(String id, ColumnOperation operation, String name, String shortName, String description)
id
- unique idoperation
- operation instancename
- nameshortName
- a short name that will be used in table headers (e.g. avg, var, ...)description
- a descriptionpublic void registerExpressionFunction(ExpressionFunction function, String name, String description)
function
- the function instance. Its name will be used as identifier.name
- the human-readable namedescription
- a descriptionpublic JIPipeExpressionRegistry.ColumnOperationEntry getColumnOperationById(String id)
id
- the IDpublic Map<String,JIPipeExpressionRegistry.ColumnOperationEntry> getTableColumnOperationsOfType(Class<? extends ColumnOperation> filterClass)
filterClass
- the filter classpublic JIPipe getJIPipe()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.