public class EvaluationContext extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EvaluationContext.Deserializer
JSON de-serializer for evaluation contexts
|
| Modifier and Type | Field and Description |
|---|---|
protected DateStyle |
m_dateStyle |
protected org.threeten.bp.ZoneId |
m_timezone |
protected Map<String,Object> |
m_variables |
protected static com.google.gson.Gson |
s_gson |
| Constructor and Description |
|---|
EvaluationContext() |
EvaluationContext(Map<String,Object> variables,
org.threeten.bp.ZoneId timezone,
DateStyle dateStyle) |
| Modifier and Type | Method and Description |
|---|---|
static EvaluationContext |
fromJson(String json) |
org.threeten.bp.format.DateTimeFormatter |
getDateFormatter(boolean incTime) |
DateParser |
getDateParser() |
DateStyle |
getDateStyle() |
org.threeten.bp.ZoneId |
getTimezone() |
Map<String,Object> |
getVariables() |
void |
putVariable(String key,
Object value) |
Object |
resolveVariable(String path)
Returns a named variable, e.g.
|
void |
setDateStyle(DateStyle dateStyle) |
protected static com.google.gson.Gson s_gson
protected org.threeten.bp.ZoneId m_timezone
protected DateStyle m_dateStyle
public static EvaluationContext fromJson(String json)
public Object resolveVariable(String path)
path - the dot notation variable pathEvaluationError - if variable is not definedpublic org.threeten.bp.ZoneId getTimezone()
public DateStyle getDateStyle()
public void setDateStyle(DateStyle dateStyle)
public org.threeten.bp.format.DateTimeFormatter getDateFormatter(boolean incTime)
public DateParser getDateParser()
Copyright © 2015. All rights reserved.