Class Quantifier.Existential

  • All Implemented Interfaces:
    Bindable, Correlated<Quantifier>
    Enclosing class:
    Quantifier

    public static final class Quantifier.Existential
    extends Quantifier
    A quantifier that conceptually flows exactly one item containing a boolean to the owning expression indicating whether the sub-graph that the quantifier ranges over produced a non-empty or an empty result. When the semantics of this quantifiers are realized in an execution strategy that strategy should facilitate a boolean "short-circuit" mechanism as the result will be true as soon as the sub-graph produces the first item.
    • Method Detail

      • getShorthand

        @Nonnull
        public String getShorthand()
        Description copied from class: Quantifier
        Return a short hand string for the quantifier. As a quantifier's semantics is usually quite subtle and should not distract from expressions. For example, when a data flow is visualized the returned string should be short.
        Specified by:
        getShorthand in class Quantifier
        Returns:
        a short string representing the quantifier.
      • rebase

        @Nonnull
        public Quantifier.Existential rebase​(@Nonnull
                                             AliasMap translationMap)
        Description copied from interface: Correlated
        Rebases this and all other objects this objects is composed of using a given translation map.
        Parameters:
        translationMap - a map defining a translation from CorrelationIdentifiers ids to CorrelationIdentifiers ids'. After the rebase, every correlation to an id contained ids that is contained or referred to directly or indirectly by this must have been transformed to use the mapped counterpart of id id' in ids'. IDs not contained in the translation map must remain unmodified by the rebase operation.
        Returns:
        a new entity that has been rebased