org.apache.tapestry.script
Interface IScriptToken

All Superinterfaces:
org.apache.hivemind.Locatable
All Known Implementing Classes:
org.apache.tapestry.script.AbstractToken

public interface IScriptToken
extends org.apache.hivemind.Locatable

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

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(java.lang.StringBuffer buffer, ScriptSession session)
          Invoked to have the token add its text to the buffer.
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Method Detail

write

public void write(java.lang.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