Triggerable class sealed

An expression whose result is applied to target nodes: a Condition (relevant/required/readonly) or a Recalculate (calculate).

Port of org.javarosa.core.model.condition.Triggerable (the dependency graph bookkeeping is added with the DAG in Phase 3).

Implementers

Properties

canCascade → bool
Whether applying this can change values others depend on.
no setter
context → TreeReference
The generic reference used to turn triggers into absolute references.
no setter
expr → XPathConditional
The expression.
final
hashCode → int
The hash code for this object.
no setterinherited
isCascadingToChildren → bool
Whether applying this affects the targets' descendants.
no setter
originalContext → TreeReference
The bind's reference, as declared.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targets → Set<TreeReference>
The nodes this triggerable sets.
no setter
triggers → Set<TreeReference>
The references this triggerable depends on.
no setter

Methods

addTarget(TreeReference target) → void
Adds a node this triggerable sets.
apply(FormInstance instance, EvaluationContext parentContext, TreeReference context) → List<(TreeReference, Object)>
Evaluates in context (a concrete instance of originalContext) and applies the result to every matching target; returns the affected references with the result.
applyResult(TreeReference ref, Object result, FormInstance instance) → void
Applies result to the node at ref.
eval(FormInstance instance, EvaluationContext ec) → Object
Evaluates the expression.
intersectContextWith(Triggerable other) → void
Narrows the context to what this and other have in common.
matches(Triggerable other) → bool
Whether other is the same kind of triggerable with an equal expression and the same triggers (contexts and targets are ignored).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited