Class ExpressionBindingParseContext

java.lang.Object
com.inductiveautomation.perspective.gateway.expression.AbstractExpressionParseContext
com.inductiveautomation.perspective.gateway.binding.expression.ExpressionBindingParseContext
All Implemented Interfaces:
ExpressionParseContext
Direct Known Subclasses:
ExpressionTransformParseContext

public class ExpressionBindingParseContext extends AbstractExpressionParseContext
ExpressionParseContext for Perspective ExpressionBindings. Links up the expression with tag and property references.
  • Constructor Details

    • ExpressionBindingParseContext

      public ExpressionBindingParseContext(@Nonnull BindingContext context)
      Primary constructor for creating new ExpressionBindingParseContext instances. All arguments must be non-null.
      Parameters:
      context - The Perspective Component associated with the expression binding. Property references may be made relative to this component
  • Method Details

    • createBoundExpression

      public Expression createBoundExpression(String path) throws RuntimeException
      Description copied from interface: ExpressionParseContext
      Called to create expressions to represent bound elements, like:

       { path.to.something }
       
      Parameters:
      path - the text content inside the braces.
      Throws:
      RuntimeException - because the CUP parser doesn't have a throws on the function that calls this inside the parser
    • getReferences

      public List<PropertyReference> getReferences()