public class StringQueryExpression extends JIPipeExpressionParameter implements Predicate<String>
JIPipeExpressionParameter.Deserializer, JIPipeExpressionParameter.List, JIPipeExpressionParameter.Serializer
Constructor and Description |
---|
StringQueryExpression() |
StringQueryExpression(String expression) |
StringQueryExpression(StringQueryExpression other) |
Modifier and Type | Method and Description |
---|---|
String |
generate(JIPipeExpressionVariablesMap expressionVariables)
Attempts to run the expression.
|
List<String> |
queryAll(Collection<String> strings,
JIPipeExpressionVariablesMap expressionVariables)
Generates an annotation value
|
String |
queryFirst(Collection<String> strings,
JIPipeExpressionVariablesMap expressionVariables)
Queries a string out of the list
|
boolean |
test(String string)
Returns true if the query matches the string
|
boolean |
test(String string,
JIPipeExpressionVariablesMap expressionVariables)
Returns true if the query matches the string
|
boolean |
testAnyOf(Collection<String> strings)
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 StringQueryExpression()
public StringQueryExpression(String expression)
public StringQueryExpression(StringQueryExpression other)
public String generate(JIPipeExpressionVariablesMap expressionVariables)
expressionVariables
- expression parameterspublic String queryFirst(Collection<String> strings, JIPipeExpressionVariablesMap expressionVariables)
strings
- existing annotations for the dataexpressionVariables
- expression parameterspublic List<String> queryAll(Collection<String> strings, JIPipeExpressionVariablesMap expressionVariables)
strings
- existing annotations for the dataexpressionVariables
- expression parameterspublic boolean test(String string)
public boolean test(String string, JIPipeExpressionVariablesMap expressionVariables)
string
- the stringpublic boolean testAnyOf(Collection<String> strings)
strings
- the stringsCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.