public abstract class AbstractOperatorNode extends AbstractUnaryNode implements Cloneable, ParseTreeNode
Modifier and Type | Field and Description |
---|---|
Node |
left |
right
BNARY_OPERATOR, CLOSE, CONSTANT, OPEN, type, UNARY_OPERATOR, UNKNOWN, VARIABLE
Constructor and Description |
---|
AbstractOperatorNode(String s) |
Modifier and Type | Method and Description |
---|---|
void |
claim() |
void |
claimLeft() |
abstract AbstractOperatorNode |
copy() |
abstract int |
getPrecedence() |
String |
getSymbol() |
void |
replaceChild(Node nold,
Node nnew) |
void |
replaceSymbols(HashMap<String,String> map) |
String |
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
doVisit, evaluateDimensional, getDimensionality, substituteVariables, toExpression
public Node left
public AbstractOperatorNode(String s)
public String getSymbol()
public abstract int getPrecedence()
public abstract AbstractOperatorNode copy()
public void replaceChild(Node nold, Node nnew) throws ParseError
replaceChild
in class Node
ParseError
public void claim() throws ParseError
claim
in class AbstractUnaryNode
ParseError
public void claimLeft() throws ParseError
ParseError
public void replaceSymbols(HashMap<String,String> map)
replaceSymbols
in class AbstractUnaryNode
Copyright © 2020. All rights reserved.