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 enum
Determines how the operation should behave when strings are involved. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
Fields 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 boolean
eitherString
(QualifiedValue v1, QualifiedValue v2) execute()
Compute and return the value of this expressionReturn a human-readable name for the operation that this expression performsint
Class<?>
getType()
Return the type that this expression will returnboolean
isConcat()
void
setConcat
(boolean isConcat) void
setOpType
(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:Expression
Compute and return the value of this expression- Throws:
ExpressionException
-
getType
Description copied from interface:Expression
Return the type that this expression will return -
getOpName
Description copied from interface:Expression
Return 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)
-