| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final DBEvalContext | |
| private Expression | |
| private static final Map | TYPE_MAP
map of all non-string data types |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public DateTimeFormatter | createDateFormatter(String formatStr)
Implements io. Returns an appropriately configured (i.e. locale) DateTimeFormatter for the given format. |
| public DecimalFormat | createDecimalFormat(String formatStr)
Implements io. Returns an appropriately configured (i.e. DecimalFormatSymbols) DecimalFormat for the given format. |
| public Object | |
| public Object | get(String key)
Implements io. Returns the value of the current key from the currently configured |
| public Bindings | getBindings()
Implements io. Returns the currently configured Bindings (from the |
| protected DatabaseImpl | |
| public Value | getIdentifierValue(Identifier identifier)
Implements io. Returns the value of the entity identified by the given identifier (for "calculated" and "row validator" expressions). |
| public Locale | getLocale()
Overrides default io. Returns the currently configured Locale. |
| public NumericConfig | getNumericConfig()
Implements io. Returns the currently configured NumericConfig (from the |
| public float | getRandom(Integer seed)
Implements io. Returns a random value for the given seed following the statefulness rules for the "Rnd" function. |
| public Value. | getResultType()
Implements io. Returns the expected type of the result value for the current expression evaluation (for "default value" and "calculated" expressions). |
| public TemporalConfig | getTemporalConfig()
Implements io. Returns the currently configured TemporalConfig (from the |
| public Value | getThisColumnValue()
Implements io. Returns the value of the "current" column (for "field validator" expressions). |
| public ZoneId | getZoneId()
Implements io. Returns the currently configured ZoneId. |
| public void | put(String key, Object value)
Implements io. Sets the value of the given key to the given value in the currently configured |
| pack-priv void | |
| public String | |
| protected Value | |
| public static Value. | |
| protected abstract String |
| dbCtx | back to summary |
|---|---|
| private final DBEvalContext dbCtx | |
| expr | back to summary |
|---|---|
| private Expression expr | |
| TYPE_MAP | back to summary |
|---|---|
| private static final Map<DataType, Value. map of all non-string data types | |
| BaseEvalContext | back to summary |
|---|---|
| protected BaseEvalContext(DBEvalContext dbCtx) | |
| collectIdentifiers | back to summary |
|---|---|
| public void collectIdentifiers(Collection<Identifier> identifiers) | |
| createDateFormatter | back to summary |
|---|---|
| public DateTimeFormatter createDateFormatter(String formatStr) Implements io. Doc from io. Returns an appropriately configured (i.e. locale) DateTimeFormatter for the given format.
| |
| createDecimalFormat | back to summary |
|---|---|
| public DecimalFormat createDecimalFormat(String formatStr) Implements io. Doc from io. Returns an appropriately configured (i.e. DecimalFormatSymbols) DecimalFormat for the given format.
| |
| eval | back to summary |
|---|---|
| public Object eval() throws IOException | |
| get | back to summary |
|---|---|
| public Object get(String key) Implements io. Doc from io. Returns the value of the current key from the currently configured
| |
| getBindings | back to summary |
|---|---|
| public Bindings getBindings() Implements io. Doc from io. Returns the currently configured Bindings (from the
| |
| getDatabase | back to summary |
|---|---|
| protected DatabaseImpl getDatabase() | |
| getIdentifierValue | back to summary |
|---|---|
| public Value getIdentifierValue(Identifier identifier) Implements io. Doc from io. Returns the value of the entity identified by the given identifier (for "calculated" and "row validator" expressions).
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Overrides default io. Doc from io. Returns the currently configured Locale.
| |
| getNumericConfig | back to summary |
|---|---|
| public NumericConfig getNumericConfig() Implements io. Doc from io. Returns the currently configured NumericConfig (from the
| |
| getRandom | back to summary |
|---|---|
| public float getRandom(Integer seed) Implements io. Doc from io. Returns a random value for the given seed following the statefulness rules for the "Rnd" function.
| |
| getResultType | back to summary |
|---|---|
| public Value. Implements io. Doc from io. Returns the expected type of the result value for the current expression evaluation (for "default value" and "calculated" expressions).
| |
| getTemporalConfig | back to summary |
|---|---|
| public TemporalConfig getTemporalConfig() Implements io. Doc from io. Returns the currently configured TemporalConfig (from the
| |
| getThisColumnValue | back to summary |
|---|---|
| public Value getThisColumnValue() Implements io. Doc from io. Returns the value of the "current" column (for "field validator" expressions).
| |
| getZoneId | back to summary |
|---|---|
| public ZoneId getZoneId() Implements io. Doc from io. Returns the currently configured ZoneId.
| |
| put | back to summary |
|---|---|
| public void put(String key, Object value) Implements io. Doc from io. Sets the value of the given key to the given value in the currently configured
| |
| setExpr | back to summary |
|---|---|
| pack-priv void setExpr(Expressionator. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| toValue | back to summary |
|---|---|
| protected Value toValue(Object val, DataType dType) | |
| toValueType | back to summary |
|---|---|
| public static Value. | |
| withErrorContext | back to summary |
|---|---|
| protected abstract String withErrorContext(String msg) | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Expressionator. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | collectIdentifiers(Collection<Identifier> identifiers)
Implements io. Adds any Identifiers from this expression to the given collection. |
| public Object | eval(EvalContext ctx)
Implements io. Evaluates the expression and returns the result. |
| private Expression | |
| public boolean | isConstant()
Implements io. Returns |
| public String | toCleanString(LocaleContext ctx)
Implements io. Returns a parsed and re-formated version of the expression. |
| public String | toDebugString(LocaleContext ctx)
Implements io. Returns a detailed string which indicates how the expression was interpreted by the expression evaluation engine. |
| public String | toRawString()
Implements io. Returns the original, unparsed expression string. |
| public String |
| exprStr | back to summary |
|---|---|
| private final String exprStr | |
| exprType | back to summary |
|---|---|
| private final Expressionator. | |
| RawExpr | back to summary |
|---|---|
| private RawExpr(Expressionator. | |
| collectIdentifiers | back to summary |
|---|---|
| public void collectIdentifiers(Collection<Identifier> identifiers) Implements io. Doc from io. Adds any Identifiers from this expression to the given collection.
| |
| eval | back to summary |
|---|---|
| public Object eval(EvalContext ctx) Implements io. Doc from io. Evaluates the expression and returns the result.
| |
| getExpr | back to summary |
|---|---|
| private Expression getExpr() | |
| isConstant | back to summary |
|---|---|
| public boolean isConstant() Implements io. Doc from io. Returns
| |
| toCleanString | back to summary |
|---|---|
| public String toCleanString(LocaleContext ctx) Implements io. Doc from io. Returns a parsed and re-formated version of the expression. This may look slightly different than the original, raw string, although it should be an equivalent expression.
| |
| toDebugString | back to summary |
|---|---|
| public String toDebugString(LocaleContext ctx) Implements io. Doc from io. Returns a detailed string which indicates how the expression was interpreted by the expression evaluation engine.
| |
| toRawString | back to summary |
|---|---|
| public String toRawString() Implements io. Doc from io. Returns the original, unparsed expression string. This is the same as the value which will be returned by
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |