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
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 a
PropertyResolver.
Once built, the expression looks up the values of the referenced properties against the
provided PropertyValueSource.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Constructor Summary
ConstructorsConstructorDescriptionPropertyBasedExpressionParseContext(ExpressionParseContext parent, PropertyResolver propResolver, PropertyValueSource source, boolean allowSubscriptions) PropertyBasedExpressionParseContext(ExpressionParseContext parent, PropertyResolver propResolver, PropertyValueSource source, FunctionFactory factory, boolean allowSubscriptions) -
Method Summary
Modifier and TypeMethodDescriptionReturns the function factory to be used for looking up functions during parsing.protected ExpressionThis function should create the expression if possible.Methods inherited from class AbstractMultiLevelExpressionParseContext
createBoundExpression, getBaseFunctionFactory
-
Constructor Details
-
PropertyBasedExpressionParseContext
public PropertyBasedExpressionParseContext(ExpressionParseContext parent, PropertyResolver propResolver, PropertyValueSource source, boolean allowSubscriptions) -
PropertyBasedExpressionParseContext
public PropertyBasedExpressionParseContext(ExpressionParseContext parent, PropertyResolver propResolver, PropertyValueSource source, FunctionFactory factory, boolean allowSubscriptions)
-
-
Method Details
-
getFunctionFactory
Description copied from interface:ExpressionParseContextReturns the function factory to be used for looking up functions during parsing.- Specified by:
getFunctionFactoryin interfaceExpressionParseContext- Overrides:
getFunctionFactoryin classAbstractMultiLevelExpressionParseContext- Returns:
- the
FunctionFactory
-
getSource
-
getResolver
-
tryCreateBoundExpression
Description copied from class:AbstractMultiLevelExpressionParseContextThis 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:
tryCreateBoundExpressionin classAbstractMultiLevelExpressionParseContext
-