Skip to content

BaseList

BaseList is an immutable list implementation used across CEL runtime values.

new BaseList(adapter, listValue, sizeValue, getter): BaseList

TypeAdapter

unknown

number

(index) => unknown

BaseList

add(other): Val

Add returns a combination of the current value and other value.

Val

Val

Lister.add


aggregateSize(sizer): number

aggregateSize implements AggregateSizeVisitor.

The result is memoized because immutable lists cannot change size; mutating subclasses clear the cache when their contents change.

AggregateSizer

number

AggregateSizeVisitor.aggregateSize


contains(elem): Val

Contains returns true if the value exists within the object.

Val

Val

Lister.contains


convertToNative(typeDesc?): unknown

ConvertToNative converts the Value to a native TypeScript value according to the provided type description, or throws if the conversion is not feasible.

unknown

unknown

Lister.convertToNative


convertToType(typeVal): Val

ConvertToType supports type conversions between CEL value types supported by the expression language.

RefType

Val

Lister.convertToType


equal(other): Val

Equal returns true if the other value has the same type and content as the implementing value.

Val

Val

Lister.equal


fold(folder): void

Folder

void


format(sb): void

string[]

void


get(index): Val

Get the value at the specified index or error.

Val

Val

Lister.get


isZeroValue(): boolean

boolean


iterator(): Iterator

Iterator returns a new iterator view of the struct.

Iterator

Lister.iterator


size(): Val

Size returns the number of elements or length of the value.

Val

Lister.size


toString(): string

Returns a string representation of an object.

string


type(): RefType

Type returns the TypeValue of the value.

RefType

Lister.type


value(): unknown

Value returns the raw value of the instance which may not be directly compatible with the expression language types.

unknown

Lister.value