Class ArithmeticExpression
java.lang.Object
com.inductiveautomation.ignition.common.expressions.AbstractExpression
com.inductiveautomation.ignition.common.expressions.ArithmeticExpression
- All Implemented Interfaces:
 Expression
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDetermines how the operation should behave when strings are involved. - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.inductiveautomation.ignition.common.expressions.AbstractExpression
children, context, updateListener - 
Constructor Summary
ConstructorsConstructorDescriptionArithmeticExpression(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 Summary
Modifier 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.AbstractExpression
connect, disconnect, getChildren, setChildren, shutdown, startup 
- 
Field Details
- 
PLUS
public static final int PLUS- See Also:
 
 - 
MINUS
public static final int MINUS- See Also:
 
 - 
MULT
public static final int MULT- See Also:
 
 - 
DIVIDE
public static final int DIVIDE- See Also:
 
 - 
MOD
public static final int MOD- See Also:
 
 - 
POW
public static final int POW- See Also:
 
 
 - 
 - 
Constructor Details
- 
ArithmeticExpression
 - 
ArithmeticExpression
 - 
ArithmeticExpression
public ArithmeticExpression(Expression e1, Expression e2, int opType, ArithmeticExpression.StringTypeAffinity affinity)  - 
ArithmeticExpression
public ArithmeticExpression() 
 - 
 - 
Method Details
- 
eitherString
 - 
execute
Description copied from interface:ExpressionCompute and return the value of this expression- Throws:
 ExpressionException
 - 
getType
Description copied from interface:ExpressionReturn the type that this expression will return - 
getOpName
Description copied from interface:ExpressionReturn a human-readable name for the operation that this expression performs - 
getOpType
public int getOpType() - 
setOpType
public void setOpType(int i)  - 
isConcat
public boolean isConcat() - 
setConcat
public void setConcat(boolean isConcat)  
 -