BaseList
BaseList is an immutable list implementation used across CEL runtime values.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BaseList(
adapter,listValue,sizeValue,getter):BaseList
Parameters
Section titled “Parameters”adapter
Section titled “adapter”listValue
Section titled “listValue”unknown
sizeValue
Section titled “sizeValue”number
getter
Section titled “getter”(index) => unknown
Returns
Section titled “Returns”BaseList
Methods
Section titled “Methods”add(
other):Val
Add returns a combination of the current value and other value.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”aggregateSize()
Section titled “aggregateSize()”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.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”number
Implementation of
Section titled “Implementation of”AggregateSizeVisitor.aggregateSize
contains()
Section titled “contains()”contains(
elem):Val
Contains returns true if the value exists within the object.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”convertToNative()
Section titled “convertToNative()”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.
Parameters
Section titled “Parameters”typeDesc?
Section titled “typeDesc?”unknown
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”convertToType()
Section titled “convertToType()”convertToType(
typeVal):Val
ConvertToType supports type conversions between CEL value types supported by the expression language.
Parameters
Section titled “Parameters”typeVal
Section titled “typeVal”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”equal()
Section titled “equal()”equal(
other):Val
Equal returns true if the other value has the same type and content as the implementing value.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”fold()
Section titled “fold()”fold(
folder):void
Parameters
Section titled “Parameters”folder
Section titled “folder”Returns
Section titled “Returns”void
format()
Section titled “format()”format(
sb):void
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”void
get(
index):Val
Get the value at the specified index or error.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”isZeroValue()
Section titled “isZeroValue()”isZeroValue():
boolean
Returns
Section titled “Returns”boolean
iterator()
Section titled “iterator()”iterator():
Iterator
Iterator returns a new iterator view of the struct.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”size()
Section titled “size()”size():
Val
Size returns the number of elements or length of the value.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”toString()
Section titled “toString()”toString():
string
Returns a string representation of an object.
Returns
Section titled “Returns”string
type()
Section titled “type()”type():
RefType
Type returns the TypeValue of the value.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”value()
Section titled “value()”value():
unknown
Value returns the raw value of the instance which may not be directly compatible with the expression language types.
Returns
Section titled “Returns”unknown