Class SubscriptExpression.SubscriptExprElaborator

  • Enclosing class:
    SubscriptExpression

    public static class SubscriptExpression.SubscriptExprElaborator
    extends ItemElaborator
    An elaborator for a "subscript" expression, typically written as X[$n] where $n is an integer or a numeric expression.
    • Constructor Detail

      • SubscriptExprElaborator

        public SubscriptExprElaborator()
    • Method Detail

      • 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.