org.apache.tapestry.script
Interface IScriptToken

All Superinterfaces:
org.apache.hivemind.Locatable
All Known Implementing Classes:
ParsedScript

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(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

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


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.