Class FieldNode
java.lang.Object
com.aquima.interactions.expressions.tsl.evaluator.nodes.FieldNode
- All Implemented Interfaces:
ITslNode
TSL node representing a field (value) from a TSL expression.
- Since:
- 6.4
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorDescriptionFieldNode
(MessageReporter reporter, IExpr expression, String format) Constructs the node with the required arguments. -
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.This method returns the expression that should be used to acquire the field value.This method returns the format that should be applied to the field value.toString()
void
visit
(ITslNodeVisitor visitor) This method allows visitation of the node.
-
Constructor Details
-
FieldNode
Constructs the node with the required arguments.- Parameters:
reporter
- Object that can be used to report error or warnings to.expression
- The expression that should be used to acquire the field value.format
- the format that should be applied to the field value, may be null.
-
-
Method Details
-
getExpression
This method returns the expression that should be used to acquire the field value.- Returns:
- the expression that should be used to acquire the field value.
-
expand
Description copied from interface:ITslNode
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. -
getFormat
This method returns the format that should be applied to the field value.- Returns:
- the format that should be applied to the field value.
-
visit
Description copied from interface:ITslNode
This method allows visitation of the node. The visit method will not invoke the visitor for any child nodes. -
toString
-