Class ArithmeticExpression
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.expressions.AbstractExpression
- 
- com.inductiveautomation.ignition.common.expressions.ArithmeticExpression
 
 
- 
- All Implemented Interfaces:
- Expression
 
 public class ArithmeticExpression extends AbstractExpression 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classArithmeticExpression.StringTypeAffinityDetermines how the operation should behave when strings are involved.
 - 
Field SummaryFields Modifier and Type Field Description static intDIVIDEstatic intMINUSstatic intMODstatic intMULTstatic intPLUSstatic intPOW- 
Fields inherited from class com.inductiveautomation.ignition.common.expressions.AbstractExpressionchildren, context, updateListener
 
- 
 - 
Constructor SummaryConstructors Constructor Description ArithmeticExpression()ArithmeticExpression(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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleaneitherString(QualifiedValue v1, QualifiedValue v2)QualifiedValueexecute()Compute and return the value of this expressionjava.lang.StringgetOpName()Return a human-readable name for the operation that this expression performsintgetOpType()java.lang.Class<?>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 Detail- 
PLUSpublic static final int PLUS - See Also:
- Constant Field Values
 
 - 
MINUSpublic static final int MINUS - See Also:
- Constant Field Values
 
 - 
MULTpublic static final int MULT - See Also:
- Constant Field Values
 
 - 
DIVIDEpublic static final int DIVIDE - See Also:
- Constant Field Values
 
 - 
MODpublic static final int MOD - See Also:
- Constant Field Values
 
 - 
POWpublic static final int POW - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ArithmeticExpressionpublic ArithmeticExpression(Expression e1, Expression e2, int opType) 
 - 
ArithmeticExpressionpublic ArithmeticExpression(Expression e1, Expression e2, int opType, boolean forceNumeric) 
 - 
ArithmeticExpressionpublic ArithmeticExpression(Expression e1, Expression e2, int opType, ArithmeticExpression.StringTypeAffinity affinity) 
 - 
ArithmeticExpressionpublic ArithmeticExpression() 
 
- 
 - 
Method Detail- 
eitherStringprotected boolean eitherString(QualifiedValue v1, QualifiedValue v2) 
 - 
execute@Nonnull public QualifiedValue execute() throws ExpressionException Description copied from interface:ExpressionCompute and return the value of this expression- Throws:
- ExpressionException
 
 - 
getTypepublic java.lang.Class<?> getType() Description copied from interface:ExpressionReturn the type that this expression will return
 - 
getOpNamepublic java.lang.String getOpName() Description 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) 
 
- 
 
-