com.primix.tapestry.script
Interface IScriptToken


public interface IScriptToken

Defines the responsibilities of a template token used by a ParsedScript ... that is, how the token can assist in generating output.

Version:
$Id: IScriptToken.java,v 1.4 2001/06/14 15:24:16 hship Exp $
Author:
Howard Ship

Method Summary
 void addToken(IScriptToken token)
          Invoked during parsing to add the token parameter as a child of this token.
 void write(java.lang.StringBuffer buffer, ScriptSession session)
          Invoked to have the token add its text to the buffer.
 

Method Detail

write

public void write(java.lang.StringBuffer buffer,
                  ScriptSession session)
           throws ScriptException
Invoked to have the token add its text to the buffer. A token may need access to the symbols in order to produce its output.

Top level tokens (such as BodyToken) can expect that buffer will be null.


addToken

public void addToken(IScriptToken token)
Invoked during parsing to add the token parameter as a child of this token.
Since:
0.2.9