Class ArithmeticExpression
java.lang.Object
com.inductiveautomation.ignition.common.expressions.AbstractExpression
com.inductiveautomation.ignition.common.expressions.ArithmeticExpression
- All Implemented Interfaces:
- Expression
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumDetermines how the operation should behave when strings are involved.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.inductiveautomation.ignition.common.expressions.AbstractExpressionchildren, context, updateListener
- 
Constructor SummaryConstructorsConstructorDescriptionArithmeticExpression(Expression e1, Expression e2, int opType) ArithmeticExpression(Expression e1, Expression e2, int opType, boolean forceNumeric) ArithmeticExpression(Expression e1, Expression e2, int opType, ArithmeticExpression.StringTypeAffinity affinity) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleaneitherString(QualifiedValue v1, QualifiedValue v2) execute()Compute and return the value of this expressionReturn a human-readable name for the operation that this expression performsintClass<?>getType()Return the type that this expression will returnbooleanisConcat()voidsetConcat(boolean isConcat) voidsetOpType(int i) Methods inherited from class com.inductiveautomation.ignition.common.expressions.AbstractExpressionconnect, disconnect, getChildren, setChildren, shutdown, startup
- 
Field Details- 
PLUSpublic static final int PLUS- See Also:
 
- 
MINUSpublic static final int MINUS- See Also:
 
- 
MULTpublic static final int MULT- See Also:
 
- 
DIVIDEpublic static final int DIVIDE- See Also:
 
- 
MODpublic static final int MOD- See Also:
 
- 
POWpublic static final int POW- See Also:
 
 
- 
- 
Constructor Details- 
ArithmeticExpression
- 
ArithmeticExpression
- 
ArithmeticExpressionpublic ArithmeticExpression(Expression e1, Expression e2, int opType, ArithmeticExpression.StringTypeAffinity affinity) 
- 
ArithmeticExpressionpublic ArithmeticExpression()
 
- 
- 
Method Details- 
eitherString
- 
executeDescription copied from interface:ExpressionCompute and return the value of this expression- Throws:
- ExpressionException
 
- 
getTypeDescription copied from interface:ExpressionReturn the type that this expression will return
- 
getOpNameDescription copied from interface:ExpressionReturn a human-readable name for the operation that this expression performs
- 
getOpTypepublic int getOpType()
- 
setOpTypepublic void setOpType(int i) 
- 
isConcatpublic boolean isConcat()
- 
setConcatpublic void setConcat(boolean isConcat) 
 
-