RangeHint<T extends AnswerValue> class abstract

A minimum and/or maximum derived from a constraint.

Port of RangeHint. Up to two comparisons are supported, e.g. . >= 1 and . < 10.

Implemented types
Implementers

Constructors

RangeHint()
Creates a hint with no bounds yet.

Properties

hashCode → int
The hash code for this object.
no setterinherited
max → T?
The maximum, or null if none.
no setter
maxInclusive ↔ bool
Whether the maximum itself is allowed.
getter/setter pair
min → T?
The minimum, or null if none.
no setter
minInclusive ↔ bool
Whether the minimum itself is allowed.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unit → double
The probing step.
no setter

Methods

castToValue(double value) → T
The answer for a probed value.
init(EvaluationContext context, XPathExpression constraint, FormInstance instance) → void
Analyses constraint (evaluated with context, whose context node is the question) against instance. Throws UnpivotableExpressionException if it can't.
override
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