Package dev.cel.common
Class CelMutableSource
- java.lang.Object
-
- dev.cel.common.CelMutableSource
-
public final class CelMutableSource extends java.lang.ObjectRepresents the mutable portion of theCelSource. This is intended for the purposes of augmenting an AST through CEL optimizers.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CelMutableSourceaddAllExtensions(java.util.Collection<? extends dev.cel.common.CelSource.Extension> extensions)CelMutableSourceaddAllMacroCalls(java.util.Map<java.lang.Long,CelMutableExpr> macroCalls)CelMutableSourceaddMacroCalls(long exprId, CelMutableExpr expr)CelMutableSourceclearMacroCall(long exprId)CelMutableSourceclearMacroCalls()static CelMutableSourcefromCelSource(dev.cel.common.CelSource source)java.lang.StringgetDescription()java.util.Set<dev.cel.common.CelSource.Extension>getExtensions()java.util.Map<java.lang.Long,CelMutableExpr>getMacroCalls()static CelMutableSourcenewInstance()CelMutableSourcesetDescription(java.lang.String description)dev.cel.common.CelSourcetoCelSource(boolean retainSourcePositions)
-
-
-
Method Detail
-
addMacroCalls
@CanIgnoreReturnValue public CelMutableSource addMacroCalls(long exprId, CelMutableExpr expr)
-
addAllMacroCalls
@CanIgnoreReturnValue public CelMutableSource addAllMacroCalls(java.util.Map<java.lang.Long,CelMutableExpr> macroCalls)
-
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)
-
newInstance
public static CelMutableSource newInstance()
-
fromCelSource
public static CelMutableSource fromCelSource(dev.cel.common.CelSource source)
-
-