Interface ITslNode
- All Known Implementing Classes:
CommentNode
,ConditionNode
,FieldNode
,ForeachNode
,NodeList
,TextNode
public interface ITslNode
Common interface for all nodes in a TSL tree.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionvoid
expand
(IValueSource source, OutputBuffer output, ILanguage language) The expand method should evaluate the node for the given language, and append the result to the output buffer supplied.void
visit
(ITslNodeVisitor visitor) This method allows visitation of the node.
-
Method Details
-
expand
The expand method should evaluate the node for the given language, and append the result to the output buffer supplied. When the node also contains child elements, this expand method should invoke the child elements too.- Parameters:
source
- Object containing the values for the current domain.output
- The output buffer the result of this node should be appended to.language
- The language for which the node should be evaluated.- Throws:
ExpressionException
- This exception is thrown when the text could not be expanded due to an error in an expression.
-
visit
This method allows visitation of the node. The visit method will not invoke the visitor for any child nodes.- Parameters:
visitor
- The visitor that should be invoked for this node.
-