Class TslText

java.lang.Object
com.aquima.interactions.expressions.TslText

public class TslText extends Object
This class contains a parsed TSL text.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Details

    • TslText

      public TslText(ITslNode node)
      Constructs the TSL text with the parse node.
      Parameters:
      node - The parsed TSL node.
  • Method Details

    • getNode

      public ITslNode getNode()
      This method returns the parse node for the TSL text.
      Returns:
      the parse node for the TSL text.
    • expand

      public String expand(IValueSource source, ILanguage language)
      This method evaluates the TSL text with the provided parameters.
      Parameters:
      source - Object containing the current state.
      language - The language for which the text should be evaluated.
      Returns:
      String containing the result of the evaluation.
      Throws:
      ExpressionException - This exception is thrown when the text could not be evaluated.
    • toString

      public String toString()
      Overrides:
      toString in class Object