public abstract class BaseEvalContext extends Object implements EvalContext
| Modifier and Type | Method and Description |
|---|---|
void |
collectIdentifiers(Collection<Identifier> identifiers) |
DateTimeFormatter |
createDateFormatter(String formatStr) |
DecimalFormat |
createDecimalFormat(String formatStr) |
Object |
eval() |
Object |
get(String key) |
Bindings |
getBindings() |
Value |
getIdentifierValue(Identifier identifier) |
NumericConfig |
getNumericConfig() |
float |
getRandom(Integer seed) |
Value.Type |
getResultType() |
TemporalConfig |
getTemporalConfig() |
Value |
getThisColumnValue() |
ZoneId |
getZoneId() |
void |
put(String key,
Object value)
Sets the value of the given key to the given value in the currently
configured
Bindings. |
String |
toString() |
static Value.Type |
toValueType(DataType dType) |
public TemporalConfig getTemporalConfig()
getTemporalConfig in interface LocaleContextEvalConfig)public DateTimeFormatter createDateFormatter(String formatStr)
createDateFormatter in interface LocaleContextpublic ZoneId getZoneId()
getZoneId in interface LocaleContextpublic NumericConfig getNumericConfig()
getNumericConfig in interface LocaleContextEvalConfig)public DecimalFormat createDecimalFormat(String formatStr)
createDecimalFormat in interface LocaleContextpublic float getRandom(Integer seed)
getRandom in interface EvalContextseed - the seed for the random value, following the rules for the
"Rnd" functionpublic Value.Type getResultType()
getResultType in interface EvalContextpublic Value getThisColumnValue()
getThisColumnValue in interface EvalContextpublic Value getIdentifierValue(Identifier identifier)
getIdentifierValue in interface EvalContextpublic Bindings getBindings()
getBindings in interface EvalContextEvalConfig)public Object get(String key)
get in interface EvalContextBindingspublic void put(String key, Object value)
EvalContextBindings.put in interface EvalContextpublic Object eval() throws IOException
IOExceptionpublic void collectIdentifiers(Collection<Identifier> identifiers)
public static Value.Type toValueType(DataType dType)
Copyright © 2005–2025 OpenHMS. All rights reserved.