public abstract class AbstractBooleanOperatorNode extends AbstractOperatorNode implements BooleanParseTreeNode
left
right
BNARY_OPERATOR, CLOSE, CONSTANT, OPEN, type, UNARY_OPERATOR, UNKNOWN, VARIABLE
Constructor and Description |
---|
AbstractBooleanOperatorNode(String s) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
bool(boolean x,
boolean y) |
protected void |
checkLeftRight() |
Dimensional |
evaluateDimensional(HashMap<String,Dimensional> dhm) |
Dimensional |
getDimensionality(HashMap<String,Dimensional> dimHM) |
void |
substituteVariables(HashMap<String,String> varHM) |
String |
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
checkDimensions, makeEvaluable
doVisit
public AbstractBooleanOperatorNode(String s)
public abstract boolean bool(boolean x, boolean y)
protected void checkLeftRight() throws ContentError
ContentError
public Dimensional getDimensionality(HashMap<String,Dimensional> dimHM) throws ContentError
getDimensionality
in interface ParseTreeNode
ContentError
public Dimensional evaluateDimensional(HashMap<String,Dimensional> dhm) throws ContentError
evaluateDimensional
in interface ParseTreeNode
ContentError
public void substituteVariables(HashMap<String,String> varHM) throws ContentError
substituteVariables
in interface ParseTreeNode
ContentError
public String toExpression() throws ContentError
toExpression
in interface BooleanParseTreeNode
toExpression
in interface ParseTreeNode
ContentError
Copyright © 2020. All rights reserved.