Class CelUnknownSet


  • public abstract class CelUnknownSet
    extends java.lang.Object
    Unknown set representation.

    An unknown set is the collection of unknowns that were encountered while evaluating a CEL expression and not pruned via logical operators.

    Note: dependant unknown values may not be included, so it's possible that re-evaluating the same expression with all the unknowns resolved will result in a different unknown set.

    • Constructor Detail

      • CelUnknownSet

        public CelUnknownSet()
    • Method Detail

      • attributes

        public abstract com.google.common.collect.ImmutableSet<CelAttribute> attributes()
        Set of attributes with a series of selection or index operations marked unknown. This set is always empty if enableUnknownTracking is disabled in CelOptions.
      • unknownExprIds

        public abstract com.google.common.collect.ImmutableSet<java.lang.Long> unknownExprIds()
        Set of subexpression IDs that were decided to be unknown and in the critical path.
      • create

        public static CelUnknownSet create​(java.lang.Long... unknownExprIds)
      • create

        public static CelUnknownSet create​(CelAttribute attribute,
                                           java.lang.Iterable<java.lang.Long> unknownExprIds)
      • create

        public static CelUnknownSet create​(com.google.common.collect.ImmutableSet<CelAttribute> attributes,
                                           com.google.common.collect.ImmutableSet<java.lang.Long> unknownExprIds)