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.
-
createList
public CelExpr.CelCreateList createList()
Gets the underlying createList expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.Kind.CREATE_LIST.
-
createStruct
public CelExpr.CelCreateStruct createStruct()
Gets the underlying createStruct expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.Kind.CREATE_STRUCT.
-
createMap
public CelExpr.CelCreateMap createMap()
Gets the underlying createMap expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.createMap().
-
comprehension
public CelExpr.CelComprehension comprehension()
Gets the underlying comprehension expression.- Throws:
java.lang.UnsupportedOperationException- if expression is notCelExpr.ExprKind.Kind.COMPREHENSION.
-
setConstant
public CelExpr.Builder setConstant(CelConstant constant)
-
setIdent
public CelExpr.Builder setIdent(CelExpr.CelIdent ident)
-
setCall
public CelExpr.Builder setCall(CelExpr.CelCall call)
-
setSelect
public CelExpr.Builder setSelect(CelExpr.CelSelect select)
-
setCreateList
public CelExpr.Builder setCreateList(CelExpr.CelCreateList createList)
-
setCreateStruct
public CelExpr.Builder setCreateStruct(CelExpr.CelCreateStruct createStruct)
-
setCreateMap
public CelExpr.Builder setCreateMap(CelExpr.CelCreateMap createMap)
-
setComprehension
public CelExpr.Builder setComprehension(CelExpr.CelComprehension comprehension)
-
build
@CheckReturnValue public abstract CelExpr build()
-
-