public class PlusNode extends AbstractFloatResultNode
Modifier and Type | Field and Description |
---|---|
static String |
SYMBOL |
leftEvaluable, rightEvaluable
left
right
BNARY_OPERATOR, CLOSE, CONSTANT, OPEN, type, UNARY_OPERATOR, UNKNOWN, VARIABLE
Constructor and Description |
---|
PlusNode() |
Modifier and Type | Method and Description |
---|---|
PlusNode |
copy() |
Dimensional |
dimop(Dimensional dl,
Dimensional dr) |
void |
doVisit(ExpressionVisitor ev) |
Dimensional |
evaluateDimensional(HashMap<String,Dimensional> dhm) |
int |
getPrecedence() |
AbstractDVal |
makeEvaluable(HashMap<String,Double> fixedHM) |
double |
op(double x,
double y) |
makeEvaluator
checkLeftRight, getDimensionality, substituteVariables, toExpression
claim, claimLeft, 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
toExpression
getDimensionality, substituteVariables
public static final String SYMBOL
public PlusNode copy()
copy
in class AbstractOperatorNode
public int getPrecedence()
getPrecedence
in class AbstractOperatorNode
public double op(double x, double y)
op
in class AbstractFloatResultNode
public AbstractDVal makeEvaluable(HashMap<String,Double> fixedHM) throws ContentError
ContentError
public Dimensional dimop(Dimensional dl, Dimensional dr) throws ContentError
dimop
in class AbstractFloatOperatorNode
ContentError
public Dimensional evaluateDimensional(HashMap<String,Dimensional> dhm) throws ContentError
evaluateDimensional
in interface ParseTreeNode
evaluateDimensional
in class AbstractFloatOperatorNode
ContentError
public void doVisit(ExpressionVisitor ev) throws ContentError
ContentError
Copyright © 2020. All rights reserved.