Interface IExpressionVariableFacade

All Superinterfaces:
IVariableFacade
All Known Implementing Classes:
ExpressionVariableFacade

public interface IExpressionVariableFacade extends IVariableFacade
Variable facade for variables that are defined by an expression tree, which can contain nested operators, references to other variables, inline constants and parameters. Expressions without parameters evaluate to the value of their root node, expressions with parameters evaluate to an operator. Simple expressions (a single operator with only variable references) are stored as IOperatorVariableFacade instead.
  • Method Details

    • getExpression

      @Nullable Expression getExpression()
      Returns:
      The expression, or null if the facade is invalid.
    • getReferenceTypes

      default Map<Integer, IValueType<?>> getReferenceTypes()
      Returns:
      The output types of the referenced variables, by variable id, as far as they were known when this card was written. This is only used when editing the card, evaluation always uses the actual variables.
    • getText

      @Nullable default String getText()
      Returns:
      The text the expression was typed as, or null if it was not typed or is printed. This is only used when editing the card, and only while the text still reads as the expression.