Enum EvaluationMode

java.lang.Object
java.lang.Enum<EvaluationMode>
net.sf.saxon.expr.EvaluationMode
All Implemented Interfaces:
Serializable, Comparable<EvaluationMode>, java.lang.constant.Constable

public enum EvaluationMode extends Enum<EvaluationMode>
An evaluation mode represents a way in which expressions can be evaluated
  • Enum Constant Details

    • UNDECIDED

      public static final EvaluationMode UNDECIDED
    • EVALUATE_LITERAL

      public static final EvaluationMode EVALUATE_LITERAL
    • EVALUATE_VARIABLE

      public static final EvaluationMode EVALUATE_VARIABLE
    • MAKE_CLOSURE

      public static final EvaluationMode MAKE_CLOSURE
    • MAKE_MEMO_CLOSURE

      public static final EvaluationMode MAKE_MEMO_CLOSURE
    • RETURN_EMPTY_SEQUENCE

      public static final EvaluationMode RETURN_EMPTY_SEQUENCE
    • EVALUATE_AND_MATERIALIZE_VARIABLE

      public static final EvaluationMode EVALUATE_AND_MATERIALIZE_VARIABLE
    • CALL_EVALUATE_OPTIONAL_ITEM

      public static final EvaluationMode CALL_EVALUATE_OPTIONAL_ITEM
    • ITERATE_AND_MATERIALIZE

      public static final EvaluationMode ITERATE_AND_MATERIALIZE
    • PROCESS

      public static final EvaluationMode PROCESS
    • LAZY_TAIL_EXPRESSION

      public static final EvaluationMode LAZY_TAIL_EXPRESSION
    • SHARED_APPEND_EXPRESSION

      public static final EvaluationMode SHARED_APPEND_EXPRESSION
    • MAKE_INDEXED_VARIABLE

      public static final EvaluationMode MAKE_INDEXED_VARIABLE
    • MAKE_SINGLETON_CLOSURE

      public static final EvaluationMode MAKE_SINGLETON_CLOSURE
    • EVALUATE_SUPPLIED_PARAMETER

      public static final EvaluationMode EVALUATE_SUPPLIED_PARAMETER
    • STREAMING_ARGUMENT

      public static final EvaluationMode STREAMING_ARGUMENT
    • CALL_EVALUATE_SINGLE_ITEM

      public static final EvaluationMode CALL_EVALUATE_SINGLE_ITEM
  • Method Details

    • values

      public static EvaluationMode[] 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

      public static EvaluationMode valueOf(String name)
      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 name
      NullPointerException - 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

      public Evaluator getEvaluator()
      Get the evaluator corresponding to a particular evaluation mode
      Returns:
      the corresponding evaluator
    • forCode

      public static EvaluationMode forCode(int code)
      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