|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.xel.impl.ExecutionResolver
public class ExecutionResolver
A variable resolver that is based on the specified execution.
Constructor Summary | |
---|---|
ExecutionResolver(Execution exec,
VariableResolver parent)
Constructs a resolver with a parent and a page. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExecutionResolver(Execution exec, VariableResolver parent)
parent
- the parent resolver (null means ignored).exec
- the current executionMethod Detail |
---|
public void setSelf(java.lang.Object self)
public java.lang.Object getSelf()
public java.lang.Object resolveVariable(java.lang.String name) throws XelException
VariableResolver
resolveVariable
in interface VariableResolver
name
- the name of the variable to resolve
XelException
public java.lang.Object resolveVariable(XelContext ctx, java.lang.Object base, java.lang.Object onm)
VariableResolverX
It resolves not only top-level variables but also properties.
For example, when resloving
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 VariableResolverX
ctx
- the context of this evaluationbase
- the base object whose property value is to be returned,
or null to reslove a top-level variable.onm
- the name of the variable (or property) to resolve
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |