Class CipExpression.BinaryOp
- java.lang.Object
-
- com.automation_pros.odva.cip.path.CipExpression
-
- com.automation_pros.odva.cip.path.CipExpression.BinaryOp
-
- Direct Known Subclasses:
CipExpression.BitwiseOp
,CipExpression.CompareOp
,CipExpression.LogicalAndOp
,CipExpression.LogicalOrOp
,CipExpression.MathOp
- Enclosing class:
- CipExpression
public abstract static class CipExpression.BinaryOp extends CipExpression
-
-
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
-
-
Field Summary
Fields Modifier and Type Field Description protected CipExpression
left
protected CipExpression
right
-
Constructor Summary
Constructors Constructor Description BinaryOp(java.util.Deque<CipExpression> stack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CipPath>
getVariablePaths()
java.lang.String
prefixedString(java.lang.String prefix)
java.lang.String
toString()
boolean
useReal(BaseDataType<?> leftData, BaseDataType<?> rightData)
boolean
useSigned(BaseDataType<?> leftData, BaseDataType<?> rightData)
-
-
-
Field Detail
-
left
protected final CipExpression left
-
right
protected final CipExpression right
-
-
Constructor Detail
-
BinaryOp
public BinaryOp(java.util.Deque<CipExpression> stack)
-
-
Method Detail
-
useReal
public boolean useReal(BaseDataType<?> leftData, BaseDataType<?> rightData)
-
useSigned
public boolean useSigned(BaseDataType<?> leftData, BaseDataType<?> rightData)
-
getVariablePaths
public java.util.List<CipPath> getVariablePaths()
- Specified by:
getVariablePaths
in classCipExpression
-
prefixedString
public java.lang.String prefixedString(java.lang.String prefix)
- Specified by:
prefixedString
in classCipExpression
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCipExpression
-
-