public class PathQueryExpression extends JIPipeExpressionParameter implements Predicate<Path>
JIPipeExpressionParameter.Deserializer, JIPipeExpressionParameter.List, JIPipeExpressionParameter.Serializer
Constructor and Description |
---|
PathQueryExpression() |
PathQueryExpression(AbstractExpressionParameter other) |
PathQueryExpression(String expression) |
Modifier and Type | Method and Description |
---|---|
List<Path> |
queryAll(Collection<Path> strings,
JIPipeExpressionVariablesMap expressionVariables)
Generates an annotation value
|
Path |
queryFirst(Collection<Path> strings,
JIPipeExpressionVariablesMap expressionVariables)
Queries a string out of the list
|
boolean |
test(Path string)
Returns true if the query matches the string
|
boolean |
test(Path string,
JIPipeExpressionVariablesMap expressionVariables)
Returns true if the query matches the string
|
boolean |
testAnyOf(Collection<Path> strings,
JIPipeExpressionVariablesMap expressionVariables)
Returns true of one of the strings matches the query.
|
escapeString, escapeString, getAdditionalUIVariables, getEvaluator, getEvaluatorInstance, isValidVariableName, setAdditionalUIVariables
equals, evaluate, evaluateToBoolean, evaluateToColor, evaluateToDouble, evaluateToDoubleList, evaluateToFloat, evaluateToInteger, evaluateToIntegerSafe, evaluateToNumber, evaluateToString, getExpression, getTextDescription, hashCode, isEmpty, setExpression, test, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTextDescriptionOf
public PathQueryExpression()
public PathQueryExpression(String expression)
public PathQueryExpression(AbstractExpressionParameter other)
public Path queryFirst(Collection<Path> strings, JIPipeExpressionVariablesMap expressionVariables)
strings
- existing annotations for the dataexpressionVariables
- expression parameterspublic List<Path> queryAll(Collection<Path> strings, JIPipeExpressionVariablesMap expressionVariables)
strings
- existing annotations for the dataexpressionVariables
- expression parameterspublic boolean test(Path string)
public boolean test(Path string, JIPipeExpressionVariablesMap expressionVariables)
string
- the stringpublic boolean testAnyOf(Collection<Path> strings, JIPipeExpressionVariablesMap expressionVariables)
strings
- the stringsexpressionVariables
- expression variablesCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.