public class PathQueryExpression extends DefaultExpressionParameter implements Predicate<Path>
DefaultExpressionParameter.List
Constructor and Description |
---|
PathQueryExpression() |
PathQueryExpression(AbstractExpressionParameter other) |
PathQueryExpression(String expression) |
Modifier and Type | Method and Description |
---|---|
List<Path> |
queryAll(Collection<Path> strings,
ExpressionVariables expressionVariables)
Generates an annotation value
|
Path |
queryFirst(Collection<Path> strings,
ExpressionVariables expressionVariables)
Queries a string out of the list
|
boolean |
test(Path string)
Returns true if the query matches the string
|
boolean |
test(Path string,
ExpressionVariables expressionVariables)
Returns true if the query matches the string
|
boolean |
testAnyOf(Collection<Path> strings,
ExpressionVariables expressionVariables)
Returns true of one of the strings matches the query.
|
getAdditionalUIVariables, getEvaluator, getEvaluatorInstance, 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, ExpressionVariables expressionVariables)
strings
- existing annotations for the dataexpressionVariables
- expression parameterspublic List<Path> queryAll(Collection<Path> strings, ExpressionVariables expressionVariables)
strings
- existing annotations for the dataexpressionVariables
- expression parameterspublic boolean test(Path string)
public boolean test(Path string, ExpressionVariables expressionVariables)
string
- the stringpublic boolean testAnyOf(Collection<Path> strings, ExpressionVariables expressionVariables)
strings
- the stringsexpressionVariables
- expression variablesCopyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.