Package org.basex.query.expr
Interface CmpPos
public interface CmpPos
Position checks.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexact()Checks if minimum and maximum expressions are identical.invert(CompileContext cc) If possible, returns an optimized expression with inverted operands.booleansimple()Checks if the positional range is deterministic.inttest(long pos, QueryContext qc) Checks the current position.
-
Method Details
-
test
Checks the current position.- Returns
2if the test is successful and remaining test can be skipped - Returns
1if the test is successful - Returns
0otherwise
simple()check.- Parameters:
pos- current positionqc- query context- Returns:
- result of check
- Throws:
QueryException- query exception
- Returns
-
simple
boolean simple()Checks if the positional range is deterministic.- Returns:
- result of check
-
exact
boolean exact()Checks if minimum and maximum expressions are identical.- Returns:
- result of check
-
invert
If possible, returns an optimized expression with inverted operands.- Parameters:
cc- compilation context- Returns:
- original or modified expression
- Throws:
QueryException- query exception
-