public abstract class OpNode extends Object implements FormulaTokenNode
Modifier and Type | Field and Description |
---|---|
protected FormulaTokenNode |
left |
protected FormulaTokenNode |
right |
Constructor and Description |
---|
OpNode() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(FormulaTokenNode child) |
abstract int |
getFlag() |
FormulaTokenNode |
getLeft() |
abstract String |
getOp() |
FormulaTokenNode |
getRight() |
int |
getType() |
boolean |
hasOperands() |
boolean |
isOp() |
FormulaTokenNode |
normalize(FormulaTokenParser parser) |
boolean |
setLeftOp(FormulaTokenNode left) |
boolean |
setRightOp(FormulaTokenNode right) |
static ExternalRefNode |
toExternalRef(FormulaTokenNode node) |
String |
toString() |
<R> List<R> |
visitChildren(TokenNodeVisitor<R> visitor)
Use the given [visitor] to visit all of the children of this node.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, getNodeId
protected FormulaTokenNode left
protected FormulaTokenNode right
public FormulaTokenNode getLeft()
public FormulaTokenNode getRight()
public boolean setLeftOp(FormulaTokenNode left)
public boolean setRightOp(FormulaTokenNode right)
public abstract int getFlag()
public abstract String getOp()
public int getType()
getType
in interface FormulaTokenNode
public boolean hasOperands()
hasOperands
in interface FormulaTokenNode
public boolean isOp()
isOp
in interface FormulaTokenNode
public boolean add(FormulaTokenNode child)
add
in interface FormulaTokenNode
public FormulaTokenNode normalize(FormulaTokenParser parser)
normalize
in interface FormulaTokenNode
public <R> List<R> visitChildren(TokenNodeVisitor<R> visitor)
FormulaTokenNode
visitChildren
in interface FormulaTokenNode
public static ExternalRefNode toExternalRef(FormulaTokenNode node)
Copyright © 2023. All rights reserved.