Package org.basex.query.util
Enum Class Flag
- All Implemented Interfaces:
Serializable,Comparable<Flag>,java.lang.constant.Constable
Expression properties that influence query compilation.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks this flag is contained in the specified array.Flag[]Removes this flag from the specified array.static FlagReturns the enum constant of this class with the specified name.static Flag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CNS
Node creation. No relocation of expressions that would change number of node constructions Example: node constructor. -
CTX
Context dependency. Checked to prevent relocations of expressions to different context. Example: context item (.). -
NDT
Non-deterministic code. Cannot be relocated, pre-evaluated or optimized away. Examples: random:double(), file:write(). -
POS
Positional access. Prevents simple iterative evaluation. Each expression that contains this flag must also containCTX. Examples: position(), last(). -
UPD
Performs updates. Checked to detect if an expression is updating or not, or if code can be optimized away when usingMainOptions.MIXUPDATES. All updating expressions are non-deterministic. Example: delete node. -
HOF
Function invocation. Used to suppress pre-evaluation of built-in functions with functions arguments. Example: fn:fold-left.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
remove
Removes this flag from the specified array.- Parameters:
flags- flags- Returns:
- new array
-
in
Checks this flag is contained in the specified array.- Parameters:
flags- flags- Returns:
- result of check
-