@Beta public final class FunctionCondition extends Condition
Underlying grammar:
function ::= attribute_exists (path) | attribute_not_exists (path) | begins_with (path, operand) | contains (path, operand)
This object is as immutable (or unmodifiable) as the underlying operand.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
functionId |
private Operand |
operand |
private PathOperand |
pathOperand |
Constructor and Description |
---|
FunctionCondition(java.lang.String functionId,
PathOperand attribute) |
FunctionCondition(java.lang.String functionId,
PathOperand attribute,
Operand operand) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
asSubstituted(SubstitutionContext context)
Returns this unit of expression as a string substituted if necessary with
tokens using the given substitution context.
|
(package private) boolean |
atomic()
A condition is considered "atomic" if appending an additional AND condition
would not alter the evaluation order of the original condition;
false otherwise.
|
(package private) java.lang.String |
getFunctionId() |
(package private) Operand |
getOperand() |
(package private) PathOperand |
getPathOperand() |
(package private) int |
precedence()
Returns the precedence of this condition.
|
private final java.lang.String functionId
private final PathOperand pathOperand
private final Operand operand
FunctionCondition(java.lang.String functionId, PathOperand attribute)
FunctionCondition(java.lang.String functionId, PathOperand attribute, Operand operand)
java.lang.String asSubstituted(SubstitutionContext context)
UnitOfExpression
asSubstituted
in class UnitOfExpression
context
- the substitution context which may get mutated as a side
effect upon completion of this methodjava.lang.String getFunctionId()
PathOperand getPathOperand()
Operand getOperand()
boolean atomic()
Condition
int precedence()
Condition
precedence
in class Condition