public class ExecutionResolver extends java.lang.Object implements VariableResolverX
| Constructor and Description |
|---|
ExecutionResolver(Execution exec,
VariableResolver parent)
Constructs a resolver with a parent and a page.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getSelf()
Returns the self variable.
|
java.lang.Object |
resolveVariable(java.lang.String name)
Resolves the specified variable.
|
java.lang.Object |
resolveVariable(XelContext ctx,
java.lang.Object base,
java.lang.Object onm)
Resolves the the given variable on the given base object.
|
void |
setSelf(java.lang.Object self)
Sets the self variable.
|
java.lang.String |
toString() |
public ExecutionResolver(Execution exec, VariableResolver parent)
parent - the parent resolver (null means ignored).exec - the current executionpublic void setSelf(java.lang.Object self)
public java.lang.Object getSelf()
public java.lang.Object resolveVariable(java.lang.String name)
throws XelException
VariableResolverresolveVariable in interface VariableResolvername - the name of the variable to resolveXelExceptionpublic java.lang.Object resolveVariable(XelContext ctx, java.lang.Object base, java.lang.Object onm)
VariableResolverXIt resolves not only top-level variables but also properties.
For example, when resolving foo.duke,
resolveVariable(ctx, null, "foo") is called first.
And if it returns an non-null object,
resolveVariable(ctx, foo, "duke"),/code> is called then
(where we assume the returned object in the previous call is foo).
resolveVariable in interface VariableResolverXctx - the context of this evaluationbase - the base object whose property value is to be returned,
or null to resolve a top-level variable.onm - the name of the variable (or property) to resolvepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005-2024 Potix Corporation. All Rights Reserved.