java.lang.Object
com.aquima.interactions.expressions.tsl.parse.nodes.FieldDefinition
All Implemented Interfaces:
IParseNode

public class FieldDefinition extends Object implements IParseNode
Parse node representing a field (value) from a TSL expression.
Since:
6.4
Author:
O. Kerpershoek
  • Constructor Details

    • FieldDefinition

      public FieldDefinition(int position, String fullExpression)
      Constructs the parse node with the required arguments.
      Parameters:
      position - The position of the field in the TSL expression.
      fullExpression - The expression that should be used to acquire the field value.
  • Method Details

    • getExpression

      public String 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.
    • 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.
    • getPosition

      public int getPosition()
      Description copied from interface: IParseNode
      This method returns the position in the original text where the node started.
      Specified by:
      getPosition in interface IParseNode
      Returns:
      The character position in the original text where the node started.