org.apache.tapestry.script
Interface IScriptToken

All Superinterfaces:
ILocatable
All Known Implementing Classes:
ParsedScript

public interface IScriptToken
extends ILocatable

Defines the responsibilities of a template token used by a IScript.

Version:
$Id: IScriptToken.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Method Summary
 void addToken(IScriptToken token)
          Invoked during parsing to add the token parameter as a child of this token.
 void write(StringBuffer buffer, ScriptSession session)
          Invoked to have the token add its text to the buffer.
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Method Detail

write

void write(StringBuffer buffer,
           ScriptSession session)
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

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

Since:
0.2.9