public abstract class COSARExprBinaryNumOp extends COSARExpr
Modifier and Type | Field and Description |
---|---|
protected COSARExpr |
m_left
This member represents the left operand.
|
protected COSARExpr |
m_right
This member represents the right operand.
|
m_bIsConstant
Constructor and Description |
---|
COSARExprBinaryNumOp(COSARExpr left,
COSARExpr right) |
Modifier and Type | Method and Description |
---|---|
COSARAttr |
eval(java.util.HashMap symbols)
This function is used to evaluate the expression.
|
protected abstract double |
getComputedValue(double val1,
double val2)
This function does the actual computation.
|
protected abstract java.lang.String |
getOpString()
This function returns a string representation of the operation.
|
java.lang.String |
toString() |
isConstant
protected COSARExpr m_left
protected COSARExpr m_right
public COSARAttr eval(java.util.HashMap symbols) throws java.lang.Exception
COSARExpr
public java.lang.String toString()
toString
in class java.lang.Object
protected abstract double getComputedValue(double val1, double val2)
protected abstract java.lang.String getOpString()