public abstract class AbstractComparisonNode extends AbstractFloatOperatorNode implements BooleanParseTreeNode
leftEvaluable, rightEvaluable
left
right
BNARY_OPERATOR, CLOSE, CONSTANT, OPEN, type, UNARY_OPERATOR, UNKNOWN, VARIABLE
Constructor and Description |
---|
AbstractComparisonNode(String s) |
Modifier and Type | Method and Description |
---|---|
void |
checkDimensions(HashMap<String,Dimensional> dimHM) |
abstract boolean |
compare(double x,
double y) |
abstract boolean |
compareInts(long ileft,
long iright) |
Dimensional |
dimop(Dimensional dl,
Dimensional dr) |
Dimensional |
evaluateDimensional(HashMap<String,Dimensional> dhm) |
checkLeftRight, getDimensionality, substituteVariables, toExpression
claim, claimLeft, copy, getPrecedence, getSymbol, replaceChild, replaceSymbols, toString
claimRight
deparent, detachNext, detachPrevious, dispose, isClose, isOpen, linkNext, next, parent, previous, remove, replaceNext, replacePrevious, replaceWith, setParent, siblingsToString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeEvaluable, toExpression
doVisit, getDimensionality, substituteVariables
public AbstractComparisonNode(String s)
public abstract boolean compare(double x, double y) throws RuntimeError
RuntimeError
public Dimensional dimop(Dimensional dl, Dimensional dr) throws ContentError
dimop
in class AbstractFloatOperatorNode
ContentError
public void checkDimensions(HashMap<String,Dimensional> dimHM) throws ContentError
checkDimensions
in interface BooleanParseTreeNode
ContentError
public abstract boolean compareInts(long ileft, long iright)
public Dimensional evaluateDimensional(HashMap<String,Dimensional> dhm) throws ContentError
evaluateDimensional
in interface ParseTreeNode
evaluateDimensional
in class AbstractFloatOperatorNode
ContentError
Copyright © 2019. All rights reserved.