Class FieldNode
- java.lang.Object
-
- com.aquima.interactions.expressions.tsl.evaluator.nodes.FieldNode
-
-
Constructor Summary
Constructors Constructor Description FieldNode(MessageReporter reporter, IExpr expression, String format)
Constructs the node with the required arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.IExpr
getExpression()
This method returns the expression that should be used to acquire the field value.String
getFormat()
This method returns the format that should be applied to the field value.String
toString()
void
visit(ITslNodeVisitor visitor)
This method allows visitation of the node.
-
-
-
Constructor Detail
-
FieldNode
public FieldNode(MessageReporter reporter, IExpr expression, String format)
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 Detail
-
getExpression
public IExpr 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
public void expand(IValueSource source, OutputBuffer output, ILanguage language)
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
public String 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
public void visit(ITslNodeVisitor visitor)
Description copied from interface:ITslNode
This method allows visitation of the node. The visit method will not invoke the visitor for any child nodes.
-
-