Package net.sf.saxon.expr
Enum EvaluationMode
- All Implemented Interfaces:
Serializable
,Comparable<EvaluationMode>
,java.lang.constant.Constable
An evaluation mode represents a way in which expressions can be evaluated
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic EvaluationMode
forCode
(int code) Get the evaluation mode with a particular integer code.int
getCode()
Get the integer code associated with an evaluation mode.Get the evaluator corresponding to a particular evaluation modestatic EvaluationMode
Returns the enum constant of this type with the specified name.static EvaluationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDECIDED
-
EVALUATE_LITERAL
-
EVALUATE_VARIABLE
-
MAKE_CLOSURE
-
MAKE_MEMO_CLOSURE
-
RETURN_EMPTY_SEQUENCE
-
EVALUATE_AND_MATERIALIZE_VARIABLE
-
CALL_EVALUATE_OPTIONAL_ITEM
-
ITERATE_AND_MATERIALIZE
-
PROCESS
-
LAZY_TAIL_EXPRESSION
-
SHARED_APPEND_EXPRESSION
-
MAKE_INDEXED_VARIABLE
-
MAKE_SINGLETON_CLOSURE
-
EVALUATE_SUPPLIED_PARAMETER
-
STREAMING_ARGUMENT
-
CALL_EVALUATE_SINGLE_ITEM
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode()Get the integer code associated with an evaluation mode. These codes should be considered stable, as they are recorded in SEF files- Returns:
- an integer code
-
getEvaluator
Get the evaluator corresponding to a particular evaluation mode- Returns:
- the corresponding evaluator
-
forCode
Get the evaluation mode with a particular integer code. This is used when reloading a stylesheet from a SEF file- Parameters:
code
- the integer code- Returns:
- the corresponding evaluation mode
-