Modified: tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/ScriptSessionImpl.java URL: http://svn.apache.org/viewcvs/tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/ScriptSessionImpl.java?rev=394523&r1=394522&r2=394523&view=diff ============================================================================== --- tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/ScriptSessionImpl.java (original) +++ tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/ScriptSessionImpl.java Sun Apr 16 10:35:49 2006 @@ -23,11 +23,11 @@ import org.apache.tapestry.services.ExpressionEvaluator; /** - * The result of executing a script, the session is used during the parsing process as well. - * Following + * The result of executing a script, the session is used during the parsing + * process as well. Following * [EMAIL PROTECTED] org.apache.tapestry.IScript#execute(org.apache.tapestry.IRequestCycle, org.apache.tapestry.IScriptProcessor, java.util.Map)}, - * the session provides access to output symbols as well as the body and initialization blocks - * created by the script tokens. + * the session provides access to output symbols as well as the body and + * initialization blocks created by the script tokens. * * @author Howard Lewis Ship * @since 0.2.9 @@ -35,6 +35,7 @@ public class ScriptSessionImpl implements ScriptSession { + private IRequestCycle _cycle; private IScriptProcessor _processor; @@ -49,9 +50,10 @@ /** @since 4.0 */ private ValueConverter _valueConverter; - public ScriptSessionImpl(Resource scriptTemplateResource, IRequestCycle cycle, - IScriptProcessor processor, ExpressionEvaluator evaluator, - ValueConverter valueConverter, Map symbols) + public ScriptSessionImpl(Resource scriptTemplateResource, + IRequestCycle cycle, IScriptProcessor processor, + ExpressionEvaluator evaluator, ValueConverter valueConverter, + Map symbols) { _scriptTemplateResource = scriptTemplateResource; _cycle = cycle; @@ -118,4 +120,4 @@ return buffer.toString(); } -} \ No newline at end of file +}
Modified: tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/SetToken.java URL: http://svn.apache.org/viewcvs/tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/SetToken.java?rev=394523&r1=394522&r2=394523&view=diff ============================================================================== --- tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/SetToken.java (original) +++ tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/SetToken.java Sun Apr 16 10:35:49 2006 @@ -17,17 +17,16 @@ import org.apache.hivemind.Location; /** - * - * Like [EMAIL PROTECTED] org.apache.tapestry.script.LetToken}, but sets the value - * from an expression attribute, rather than a body of full content. - * - * @author Howard Lewis Ship - * @since 2.2 - * - **/ + * Like [EMAIL PROTECTED] org.apache.tapestry.script.LetToken}, but sets the value from an + * expression attribute, rather than a body of full content. + * + * @author Howard Lewis Ship + * @since 2.2 + */ class SetToken extends AbstractToken { + private String _key; private String _expression; @@ -39,11 +38,9 @@ } /** - * - * Doesn't <em>write</em>, it evaluates the expression and assigns - * the result back to the key. - * - **/ + * Doesn't <em>write</em>, it evaluates the expression and assigns the + * result back to the key. + */ public void write(StringBuffer buffer, ScriptSession session) { @@ -53,4 +50,4 @@ session.getSymbols().put(_key, value); } -} \ No newline at end of file +} Modified: tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/StaticToken.java URL: http://svn.apache.org/viewcvs/tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/StaticToken.java?rev=394523&r1=394522&r2=394523&view=diff ============================================================================== --- tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/StaticToken.java (original) +++ tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/script/StaticToken.java Sun Apr 16 10:35:49 2006 @@ -16,29 +16,27 @@ import org.apache.hivemind.Location; - /** - * A token for static portions of the template. - * - * @author Howard Lewis Ship - * - **/ + * A token for static portions of the template. + * + * @author Howard Lewis Ship + */ class StaticToken extends AbstractToken { + private String _text; StaticToken(String text, Location location) { - super(location); - + super(location); + _text = text; } /** - * Writes the text to the writer. - * - **/ + * Writes the text to the writer. + */ public void write(StringBuffer buffer, ScriptSession session) { @@ -49,4 +47,4 @@ { // Should never be invoked. } -} \ No newline at end of file +} --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]