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 LocaleContext
EvalConfig
)public DateTimeFormatter createDateFormatter(String formatStr)
createDateFormatter
in interface LocaleContext
public ZoneId getZoneId()
getZoneId
in interface LocaleContext
public NumericConfig getNumericConfig()
getNumericConfig
in interface LocaleContext
EvalConfig
)public DecimalFormat createDecimalFormat(String formatStr)
createDecimalFormat
in interface LocaleContext
public float getRandom(Integer seed)
getRandom
in interface EvalContext
seed
- the seed for the random value, following the rules for the
"Rnd" functionpublic Value.Type getResultType()
getResultType
in interface EvalContext
public Value getThisColumnValue()
getThisColumnValue
in interface EvalContext
public Value getIdentifierValue(Identifier identifier)
getIdentifierValue
in interface EvalContext
public Bindings getBindings()
getBindings
in interface EvalContext
EvalConfig
)public Object get(String key)
get
in interface EvalContext
Bindings
public void put(String key, Object value)
EvalContext
Bindings
.put
in interface EvalContext
public Object eval() throws IOException
IOException
public void collectIdentifiers(Collection<Identifier> identifiers)
public static Value.Type toValueType(DataType dType)
Copyright © 2005–2024 OpenHMS. All rights reserved.