Package com.xmlcalabash.runtime
Class LazyValue
-
- All Implemented Interfaces:
public final class LazyValue
Holds a value that will be evaluated lazily.
This slightly awkward construction is necessary because we don't want to evaluate options that aren't used and we can't construct an XProcConstantExpression at runtime. Perhaps a better solution would be to resolve the conflict between StepConfiguration and RuntimeStepConfiguration, but we'll do this kludge for now.
-
-
Field Summary
Fields Modifier and Type Field Description private final XdmValue
value
private final DocumentContext
context
-
Constructor Summary
Constructors Constructor Description LazyValue(DocumentContext context, XProcExpression expression, XProcStepConfiguration config)
LazyValue(DocumentContext context, XdmValue value, XProcStepConfiguration config)
-
Method Summary
Modifier and Type Method Description final XdmValue
getValue()
final DocumentContext
getContext()
-
-
Constructor Detail
-
LazyValue
LazyValue(DocumentContext context, XProcExpression expression, XProcStepConfiguration config)
-
LazyValue
LazyValue(DocumentContext context, XdmValue value, XProcStepConfiguration config)
-
-
Method Detail
-
getValue
final XdmValue getValue()
-
getContext
final DocumentContext getContext()
-
-
-
-