Class CelMutableSource


  • public final class CelMutableSource
    extends java.lang.Object
    Represents the mutable portion of the CelSource. This is intended for the purposes of augmenting an AST through CEL optimizers.
    • Method Detail

      • addAllExtensions

        @CanIgnoreReturnValue
        public CelMutableSource addAllExtensions​(java.util.Collection<? extends dev.cel.common.CelSource.Extension> extensions)
      • setDescription

        @CanIgnoreReturnValue
        public CelMutableSource setDescription​(java.lang.String description)
      • clearMacroCall

        @CanIgnoreReturnValue
        public CelMutableSource clearMacroCall​(long exprId)
      • clearMacroCalls

        @CanIgnoreReturnValue
        public CelMutableSource clearMacroCalls()
      • getDescription

        public java.lang.String getDescription()
      • getMacroCalls

        public java.util.Map<java.lang.Long,​CelMutableExpr> getMacroCalls()
      • getExtensions

        public java.util.Set<dev.cel.common.CelSource.Extension> getExtensions()
      • toCelSource

        public dev.cel.common.CelSource toCelSource​(boolean retainSourcePositions)
      • fromCelSource

        public static CelMutableSource fromCelSource​(dev.cel.common.CelSource source)