AttrInterpretable
AttrInterpretable evaluates an attribute and adapts the resolved result into a CEL value.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AttrInterpretable(
attrValue,adapterValue,optionalValue?):AttrInterpretable
constructor initializes the attribute interpretable state.
Parameters
Section titled “Parameters”attrValue
Section titled “attrValue”adapterValue
Section titled “adapterValue”TypeAdapter
optionalValue?
Section titled “optionalValue?”boolean = false
Returns
Section titled “Returns”AttrInterpretable
Methods
Section titled “Methods”adapter()
Section titled “adapter()”adapter():
TypeAdapter
adapter returns the attribute adapter.
Returns
Section titled “Returns”TypeAdapter
Implementation of
Section titled “Implementation of”InterpretableAttribute.adapter
addQualifier()
Section titled “addQualifier()”addQualifier(
qualifier):Attribute
addQualifier appends a qualifier to the underlying attribute.
Parameters
Section titled “Parameters”qualifier
Section titled “qualifier”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”InterpretableAttribute.addQualifier
attr()
Section titled “attr()”attr():
Attribute
attr returns the underlying runtime attribute.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”eval()
Section titled “eval()”eval(
activation):Val
eval resolves the attribute against the current activation.
Parameters
Section titled “Parameters”activation
Section titled “activation”Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”exec()
Section titled “exec()”exec(
frame):Val
exec resolves the attribute against the current frame.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”id():
number
id returns the expression id associated with the attribute.
Returns
Section titled “Returns”number
Implementation of
Section titled “Implementation of”isOptional()
Section titled “isOptional()”isOptional():
boolean
isOptional reports whether the resolved result is optional.
Returns
Section titled “Returns”boolean
Implementation of
Section titled “Implementation of”InterpretableAttribute.isOptional
qualify()
Section titled “qualify()”qualify(
vars,obj):unknown
qualify delegates to the underlying attribute.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”InterpretableAttribute.qualify
qualifyIfPresent()
Section titled “qualifyIfPresent()”qualifyIfPresent(
vars,obj,presenceOnly):unknown
qualifyIfPresent delegates to the underlying attribute.
Parameters
Section titled “Parameters”unknown
presenceOnly
Section titled “presenceOnly”boolean
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”InterpretableAttribute.qualifyIfPresent
resolve()
Section titled “resolve()”resolve(
vars):unknown
resolve delegates to the underlying attribute.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”InterpretableAttribute.resolve
withOptional()
Section titled “withOptional()”withOptional():
AttrInterpretable
withOptional marks the attribute result as an optional value.
Returns
Section titled “Returns”AttrInterpretable