Class CipExpression.CompareOp
- java.lang.Object
-
- com.automation_pros.odva.cip.path.CipExpression
-
- com.automation_pros.odva.cip.path.CipExpression.BinaryOp
-
- com.automation_pros.odva.cip.path.CipExpression.CompareOp
-
- Enclosing class:
- CipExpression
public static class CipExpression.CompareOp extends CipExpression.BinaryOp
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.path.CipExpression
CipExpression.AddOp, CipExpression.AndOp, CipExpression.BinaryOp, CipExpression.BitwiseOp, CipExpression.CompareOp, CipExpression.Constant, CipExpression.DivideOp, CipExpression.InvertOp, CipExpression.LogicalAndOp, CipExpression.LogicalOrOp, CipExpression.MathOp, CipExpression.ModulusOp, CipExpression.MultiplyOp, CipExpression.NotOp, CipExpression.OrOp, CipExpression.SubtractOp, CipExpression.TrinaryOp, CipExpression.UnaryOp, CipExpression.Variable, CipExpression.XorOp
-
-
Constructor Summary
Constructors Constructor Description CompareOp(java.util.Deque<CipExpression> stack, boolean lt, boolean eq, boolean gt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Number
asNumber(BaseDataType<?> data)
protected java.lang.String
compareAs()
BaseDataType<?>
execute(DataContext ctx)
java.lang.String
prefixedString(java.lang.String prefix)
java.lang.String
toString()
-
Methods inherited from class com.automation_pros.odva.cip.path.CipExpression.BinaryOp
getVariablePaths, useReal, useSigned
-
-
-
-
Constructor Detail
-
CompareOp
public CompareOp(java.util.Deque<CipExpression> stack, boolean lt, boolean eq, boolean gt)
-
-
Method Detail
-
asNumber
protected java.lang.Number asNumber(BaseDataType<?> data)
-
execute
public BaseDataType<?> execute(DataContext ctx)
- Specified by:
execute
in classCipExpression
-
compareAs
protected java.lang.String compareAs()
-
prefixedString
public java.lang.String prefixedString(java.lang.String prefix)
- Overrides:
prefixedString
in classCipExpression.BinaryOp
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCipExpression.BinaryOp
-
-