Class PropertyBasedExpressionParseContext
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.expressions.AbstractMultiLevelExpressionParseContext
-
- com.inductiveautomation.ignition.gateway.expressions.PropertyBasedExpressionParseContext
-
- All Implemented Interfaces:
ExpressionParseContext
- Direct Known Subclasses:
AlarmExpressionParseContext
public class PropertyBasedExpressionParseContext extends AbstractMultiLevelExpressionParseContext
This context creates expressions that reference properties. However, it also supports delegation to another ExpressionParseContext in the case that the referenced item is not a Property. To determine this, it uses aPropertyResolver
.Once built, the expression looks up the values of the referenced properties against the provided
PropertyValueSource
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
PropertyBasedExpressionParseContext.PropertyReferenceExpression
-
Constructor Summary
Constructors Constructor Description PropertyBasedExpressionParseContext(ExpressionParseContext parent, PropertyResolver propResolver, PropertyValueSource source)
PropertyBasedExpressionParseContext(ExpressionParseContext parent, PropertyResolver propResolver, PropertyValueSource source, FunctionFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionFactory
getFunctionFactory()
PropertyResolver
getResolver()
PropertyValueSource
getSource()
protected Expression
tryCreateBoundExpression(java.lang.String path)
This function should create the expression if possible.-
Methods inherited from class com.inductiveautomation.ignition.gateway.expressions.AbstractMultiLevelExpressionParseContext
createBoundExpression, getBaseFunctionFactory, getDelegateParseContext
-
-
-
-
Constructor Detail
-
PropertyBasedExpressionParseContext
public PropertyBasedExpressionParseContext(ExpressionParseContext parent, PropertyResolver propResolver, PropertyValueSource source)
-
PropertyBasedExpressionParseContext
public PropertyBasedExpressionParseContext(ExpressionParseContext parent, PropertyResolver propResolver, PropertyValueSource source, FunctionFactory factory)
-
-
Method Detail
-
getFunctionFactory
public FunctionFactory getFunctionFactory()
- Specified by:
getFunctionFactory
in interfaceExpressionParseContext
- Overrides:
getFunctionFactory
in classAbstractMultiLevelExpressionParseContext
-
getSource
public PropertyValueSource getSource()
-
getResolver
public PropertyResolver getResolver()
-
tryCreateBoundExpression
protected Expression tryCreateBoundExpression(java.lang.String path)
Description copied from class:AbstractMultiLevelExpressionParseContext
This function should create the expression if possible. If not, it should return null instead of throwing the error, in which case the parent parse context will be tried.- Specified by:
tryCreateBoundExpression
in classAbstractMultiLevelExpressionParseContext
-
-