org.jfree.formula
Interface FormulaContext
- DefaultFormulaContext
The formula-context connects the formula functions with the outside world. The context can be used to resolve
external references, to query the configuration or to retrieve information about the formula-evaluation system.
getConfiguration
public Configuration getConfiguration()
Returns the local configuration of the formula.
getLocalizationContext
public LocalizationContext getLocalizationContext()
Returns the localization context of this formula. The localization context can be used to query locale specific
configuration settings.
- the localization context.
getTypeRegistry
public TypeRegistry getTypeRegistry()
Returns the type registry. The type registry contains all type information and allows to convert values between
different types.
isReferenceDirty
public boolean isReferenceDirty(Object name)
throws ContextEvaluationException
Checks, whether the external object referenced by name
has changed.
name
- the name that identifies the reference.
- true, if the reference has changed, false otherwise.
resolveReference
public Object resolveReference(Object name)
throws ContextEvaluationException
Resolves the given reference. How the name is interpreted by the outside system is an implementation detail.
name
- the name that identifies the reference.
resolveReferenceType
public Type resolveReferenceType(Object name)
throws ContextEvaluationException
Queries the type of the given reference. How the name is interpreted by the outside system is an implementation
detail. This return a LibFormula type object matching the type of the object that would be returned by
resolveReference.
name
- the name that identifies the reference.
- the type of the resolved object.