org.apache.tapestry.script
Interface IScriptToken
- All Superinterfaces:
- ILocatable
- All Known Implementing Classes:
- org.apache.tapestry.script.AbstractToken
- public interface IScriptToken
- extends ILocatable
Defines the responsibilities of a template token used by a
IScript
.
- Version:
- $Id: IScriptToken.java,v 1.3 2003/04/25 01:18:31 hlship Exp $
- Author:
- Howard Lewis Ship
write
public 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
public void addToken(IScriptToken token)
- Invoked during parsing to add the token parameter as a child
of this token.
- Since:
- 0.2.9