Class IdentityComparison.IdentityComparisonElaborator

  • Enclosing class:
    IdentityComparison

    public static class IdentityComparison.IdentityComparisonElaborator
    extends ItemElaborator
    Elaborator for an identity comparison (operators is, <<, and >> )
    • Constructor Detail

      • IdentityComparisonElaborator

        public IdentityComparisonElaborator()
    • Method Detail

      • elaborateForBoolean

        public BooleanEvaluator elaborateForBoolean()
        Description copied from class: Elaborator
        Get a function that evaluates the underlying expression in the form of a boolean, this being the effective boolean value of the expression.
        Overrides:
        elaborateForBoolean in class ItemElaborator
        Returns:
        an evaluator for the expression that returns a boolean.
      • elaborateForItem

        public ItemEvaluator elaborateForItem()
        Description copied from class: Elaborator
        Get a function that evaluates the underlying expression in the form of a Item. This must only be called for expressions whose result has cardinality zero or one.
        Specified by:
        elaborateForItem in class ItemElaborator
        Returns:
        an evaluator for the expression that returns an Item, or null to represent an empty sequence.