Top Description Methods
org.apache.commons.jexl2

public Interface NamespaceResolver

Known Direct Implementers
org.apache.commons.jexl2.UnifiedJEXL.TemplateContext

This interface declares how to resolve a namespace from its name; it is used by the interpreter during evalutation.

In JEXL, a namespace is an object that serves the purpose of encapsulating functions; for instance, the "math" namespace would be the proper object to expose functions like "log(...)", "sinus(...)", etc.

In expressions like "ns:function(...)", the resolver is called with resolveNamespace("ns").

JEXL itself reserves 'jexl' and 'ujexl' as namespaces for internal purpose; resolving those may lead to unexpected results.

Since
2.1

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the namespace object
resolveNamespace
(String
the name
name
)

Resolves a namespace by its name.

Method Detail

resolveNamespaceback to summary
public Object resolveNamespace(String name)

Resolves a namespace by its name.

Parameters
name:String

the name

Returns:Object

the namespace object