Package org.apache.poi.ss.formula.token
Class OpNode
- java.lang.Object
-
- org.apache.poi.ss.formula.token.OpNode
-
- All Implemented Interfaces:
FormulaTokenNode
- Direct Known Subclasses:
AddNode
,AndNode
,ColonNode
,ColonOpNode
,CommaNode
,DivNode
,EqualNode
,ExclamationNode
,ExpNode
,GreaterThanEqualNode
,GreatNode
,LessNode
,LessThanEqualNode
,MultiNode
,NotEqualNode
,SpaceNode
,SubtractNode
public abstract class OpNode extends Object implements FormulaTokenNode
-
-
Field Summary
Fields Modifier and Type Field Description protected FormulaTokenNode
left
protected FormulaTokenNode
right
-
Constructor Summary
Constructors Constructor Description OpNode()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.ss.formula.token.FormulaTokenNode
accept, getNodeId
-
-
-
-
Field Detail
-
left
protected FormulaTokenNode left
-
right
protected FormulaTokenNode right
-
-
Method Detail
-
getLeft
public FormulaTokenNode getLeft()
-
getRight
public FormulaTokenNode getRight()
-
setLeftOp
public boolean setLeftOp(FormulaTokenNode left)
-
setRightOp
public boolean setRightOp(FormulaTokenNode right)
-
getFlag
public abstract int getFlag()
-
getOp
public abstract String getOp()
-
getType
public int getType()
- Specified by:
getType
in interfaceFormulaTokenNode
-
hasOperands
public boolean hasOperands()
- Specified by:
hasOperands
in interfaceFormulaTokenNode
-
isOp
public boolean isOp()
- Specified by:
isOp
in interfaceFormulaTokenNode
-
add
public boolean add(FormulaTokenNode child)
- Specified by:
add
in interfaceFormulaTokenNode
-
normalize
public FormulaTokenNode normalize(FormulaTokenParser parser)
- Specified by:
normalize
in interfaceFormulaTokenNode
-
visitChildren
public <R> List<R> visitChildren(TokenNodeVisitor<R> visitor)
Description copied from interface:FormulaTokenNode
Use the given [visitor] to visit all of the children of this node. Return the values returned by the visitor as a result of visiting each child node.- Specified by:
visitChildren
in interfaceFormulaTokenNode
-
toExternalRef
public static ExternalRefNode toExternalRef(FormulaTokenNode node)
-
-