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 PerspectiveExpressionBindings
. Links up the expression with tag and property references.
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.perspective.gateway.expression.AbstractExpressionParseContext
context, INITIAL_TAG_VALUE
-
-
Constructor Summary
Constructors Constructor Description ExpressionBindingParseContext(BindingContext context)
Primary constructor for creating newExpressionBindingParseContext
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
createBoundExpression(java.lang.String path)
Called to create expressions to represent bound elements, like:-
Methods inherited from class com.inductiveautomation.perspective.gateway.expression.AbstractExpressionParseContext
createExpressionForTagReference, getFunctionFactory
-
-
-
-
Constructor Detail
-
ExpressionBindingParseContext
public ExpressionBindingParseContext(@Nonnull BindingContext context)
Primary constructor for creating newExpressionBindingParseContext
instances. All arguments must be non-null.- Parameters:
context
- The PerspectiveComponent
associated with the expression binding. Property references may be made relative to this component
-
-
Method Detail
-
createBoundExpression
public Expression createBoundExpression(java.lang.String path) throws java.lang.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:
java.lang.RuntimeException
- because the CUP parser doesn't have a throws on the function that calls this inside the parser
-
-