CelProgram class
Properties
-
changedFieldNames
→ Set<String>
-
The field names the expression compares with
changedFields(), in
.hasOnly([...]) or "name" in changedFields(); the config must
declare each.
no setter
-
credits
→ Set<String>
-
The credits the expression names in
spend("…", n) (05 §3.4), which
the config must sell; only a model's create, update and delete rules
may.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
lookupFields
→ Iterable<(String, String?)>
-
no setter
-
metadataLookups
→ Iterable<(String, String)>
-
The lookups whose id is a field of the record's metadata
(
get/exists("<model>", record.metadata.<field>)), as (field, model).
no setter
-
referencesChangedFields
→ bool
-
True when the expression calls
changedFields(), which only a proposed
update binds (05 §2.2).
no setter
-
referencesLookup
→ bool
-
no setter
-
referencesNewRecord
→ bool
-
no setter
-
referencesRecord
→ bool
-
True when the expression reads
record.* (including inside has()),
which decides 404-vs-403 on a denial (04 §3.2.1).
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ String
-
The expression text as given to parseCel.
final
-
unlocks
→ Set<String>
-
The unlocks the expression names in
owns("…") (05 §3.4), which the
config must sell.
final
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
override