|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tapestry.script.ParsedScript
public class ParsedScript
A top level container for a number of script tokens.
| Constructor Summary | |
|---|---|
ParsedScript(ILocation location)
|
|
| Method Summary | |
|---|---|
void |
addToken(IScriptToken token)
Invoked during parsing to add the token parameter as a child of this token. |
protected Object |
evaluate(String expression,
ScriptSession session)
Evaluates the expression against the session's symbols, using OgnlUtils.get(String, ClassResolver, Object) and
returns the result. |
void |
execute(IRequestCycle cycle,
IScriptProcessor processor,
Map symbols)
Creates the ScriptSession and invokes
AbstractToken.writeChildren(java.lang.StringBuffer, org.apache.tapestry.script.ScriptSession). |
ILocation |
getLocation()
Returns the location from which
this object orginates, or null if not known. |
IResourceLocation |
getScriptLocation()
Returns the location from which the script was loaded. |
void |
write(StringBuffer buffer,
ScriptSession session)
Does nothing; never invoked. |
protected void |
writeChildren(StringBuffer buffer,
ScriptSession session)
Invokes IScriptToken.write(StringBuffer,ScriptSession)
on each child token (if there are any). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParsedScript(ILocation location)
| Method Detail |
|---|
public IResourceLocation getScriptLocation()
IScript
getScriptLocation in interface IScript
public void execute(IRequestCycle cycle,
IScriptProcessor processor,
Map symbols)
ScriptSession and invokes
AbstractToken.writeChildren(java.lang.StringBuffer, org.apache.tapestry.script.ScriptSession).
execute in interface IScriptcycle - the current request cycleprocessor - an object that processes the results of the script, typically
an instance of Bodysymbols - Map of input symbols; execution of the script may modify the map,
creating new output symbolsBody.get(IRequestCycle)
public void write(StringBuffer buffer,
ScriptSession session)
write in interface IScriptTokenpublic ILocation getLocation()
ILocatablelocation from which
this object orginates, or null if not known.
getLocation in interface ILocatablepublic void addToken(IScriptToken token)
IScriptToken
addToken in interface IScriptToken
protected void writeChildren(StringBuffer buffer,
ScriptSession session)
IScriptToken.write(StringBuffer,ScriptSession)
on each child token (if there are any).
protected Object evaluate(String expression,
ScriptSession session)
OgnlUtils.get(String, ClassResolver, Object) and
returns the result.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||