Package dev.cel.common.ast
Class CelExpr.Builder
- java.lang.Object
-
- dev.cel.common.ast.CelExpr.Builder
-
- Enclosing class:
- CelExpr
public abstract static class CelExpr.Builder extends java.lang.ObjectBuilder for CelExpr.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public abstract long id()
-
setId
public abstract CelExpr.Builder setId(long value)
-
setExprKind
public abstract CelExpr.Builder setExprKind(CelExpr.ExprKind value)
-
exprKind
public abstract CelExpr.ExprKind exprKind()
-
constant
public CelConstant constant()
Gets the underlying constant expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.Kind.CONSTANT.
-
ident
public CelExpr.CelIdent ident()
Gets the underlying identifier expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.Kind.IDENT.
-
select
public CelExpr.CelSelect select()
Gets the underlying select expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.Kind.SELECT.
-
call
public CelExpr.CelCall call()
Gets the underlying call expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.Kind.CALL.
-
list
public CelExpr.CelList list()
Gets the underlying list expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.Kind.LIST.
-
struct
public CelExpr.CelStruct struct()
Gets the underlying struct expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.Kind.STRUCT.
-
map
public CelExpr.CelMap map()
Gets the underlying map expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.Kind.MAP.
-
comprehension
public CelExpr.CelComprehension comprehension()
Gets the underlying comprehension expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.Kind.COMPREHENSION.
-
setConstant
@CanIgnoreReturnValue public CelExpr.Builder setConstant(CelConstant constant)
-
setIdent
@CanIgnoreReturnValue public CelExpr.Builder setIdent(CelExpr.CelIdent ident)
-
setCall
@CanIgnoreReturnValue public CelExpr.Builder setCall(CelExpr.CelCall call)
-
setSelect
@CanIgnoreReturnValue public CelExpr.Builder setSelect(CelExpr.CelSelect select)
-
setList
@CanIgnoreReturnValue public CelExpr.Builder setList(CelExpr.CelList list)
-
setStruct
@CanIgnoreReturnValue public CelExpr.Builder setStruct(CelExpr.CelStruct struct)
-
setMap
@CanIgnoreReturnValue public CelExpr.Builder setMap(CelExpr.CelMap map)
-
setComprehension
@CanIgnoreReturnValue public CelExpr.Builder setComprehension(CelExpr.CelComprehension comprehension)
-
build
@CheckReturnValue public abstract CelExpr build()
-
-