used to obtain a constant value.
used to obtain a constant value.
isConstant must be true or this will throw.
For unparsing of forward-referencing (outputValueCalc) expressions
For unparsing of forward-referencing (outputValueCalc) expressions
Depends on the dstate havng been properly initialized. E.g., the variable map, current node, mode, etc.
The whereBlockedInfo is a return data structure that is side-effected to indicate the block location. I.e., where in the infoset are we blocked. Used for forward-progress-checking so as to detect deadlocks.
tells us if the property is non-empty.
tells us if the property is non-empty. This is true if it is a constant non-empty expression (that is, is not ""), but it is also true if it is evaluated as a runtime expression that it is not allowed to return "".
Issue: are there properties which are string-valued, and where "" can in fact be returned at run time? Assumed no. This was clarified in an errata to the DFDL spec.
Note use of the stringOf(v)
below.
Note use of the stringOf(v)
below.
Turns out x.toString
creates some crappy printed representations,
particularly for Array[Byte]
. It prints a useless thing like "[@0909280".
Use of stringOf
prints "Array(....)".
The target type of the expression.
The target type of the expression. This is the type that we want the expression to create.