Class AlarmEventCollectionExpressionParseContext
java.lang.Object
com.inductiveautomation.ignition.gateway.expressions.AbstractMultiLevelExpressionParseContext
com.inductiveautomation.ignition.gateway.expressions.AlarmEventCollectionExpressionParseContext
- All Implemented Interfaces:
ExpressionParseContext
public class AlarmEventCollectionExpressionParseContext
extends AbstractMultiLevelExpressionParseContext
This parse context is built to work with a collection of events. It works much like the
Examples:
{MaxPriority}
{Priority}
PropertyBasedExpressionParseContext
, except that allows indexing into the collection, and supports additional
collection-related properties, such as "Count", "MinPriority", etc.Examples:
{MaxPriority}
{Priority}
-
Constructor Summary
ConstructorsConstructorDescriptionAlarmEventCollectionExpressionParseContext
(PropertyResolver propResolver, List<AlarmEvent> alarmEvents) -
Method Summary
Modifier and TypeMethodDescriptionexpandCollectionReferences
(String expression) We want our message syntax to support building a "loop" message.protected Expression
This function should create the expression if possible.Methods inherited from class com.inductiveautomation.ignition.gateway.expressions.AbstractMultiLevelExpressionParseContext
createBoundExpression, getBaseFunctionFactory, getDelegateParseContext, getFunctionFactory
-
Constructor Details
-
AlarmEventCollectionExpressionParseContext
public AlarmEventCollectionExpressionParseContext(PropertyResolver propResolver, List<AlarmEvent> alarmEvents)
-
-
Method Details
-
tryCreateBoundExpression
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
-
expandCollectionReferences
We want our message syntax to support building a "loop" message. Since that not part of the parser, and we happen to know how many events there will be here, so we create an expanded, parsable message here.- Throws:
Exception
-