Skip to content

AttrInterpretable

AttrInterpretable evaluates an attribute and adapts the resolved result into a CEL value.

new AttrInterpretable(attrValue, adapterValue, optionalValue?): AttrInterpretable

constructor initializes the attribute interpretable state.

Attribute

TypeAdapter

boolean = false

AttrInterpretable

adapter(): TypeAdapter

adapter returns the attribute adapter.

TypeAdapter

InterpretableAttribute.adapter


addQualifier(qualifier): Attribute

addQualifier appends a qualifier to the underlying attribute.

Qualifier

Attribute

InterpretableAttribute.addQualifier


attr(): Attribute

attr returns the underlying runtime attribute.

Attribute

InterpretableAttribute.attr


eval(activation): Val

eval resolves the attribute against the current activation.

Activation

Val

InterpretableAttribute.eval


exec(frame): Val

exec resolves the attribute against the current frame.

ExecutionFrame

Val

InterpretableAttribute.exec


id(): number

id returns the expression id associated with the attribute.

number

InterpretableAttribute.id


isOptional(): boolean

isOptional reports whether the resolved result is optional.

boolean

InterpretableAttribute.isOptional


qualify(vars, obj): unknown

qualify delegates to the underlying attribute.

Activation

unknown

unknown

InterpretableAttribute.qualify


qualifyIfPresent(vars, obj, presenceOnly): unknown

qualifyIfPresent delegates to the underlying attribute.

Activation

unknown

boolean

unknown

InterpretableAttribute.qualifyIfPresent


resolve(vars): unknown

resolve delegates to the underlying attribute.

Activation

unknown

InterpretableAttribute.resolve


withOptional(): AttrInterpretable

withOptional marks the attribute result as an optional value.

AttrInterpretable