Package org.apache.poi.ss.formula.token
Class SingleChildNode
- java.lang.Object
-
- org.apache.poi.ss.formula.token.SingleChildNode
-
- All Implemented Interfaces:
FormulaTokenNode
- Direct Known Subclasses:
MinusNode
,PercentNode
,PlusNode
,UnionNode
public abstract class SingleChildNode extends Object implements FormulaTokenNode
-
-
Field Summary
Fields Modifier and Type Field Description protected FormulaTokenNode
child
-
Constructor Summary
Constructors Constructor Description SingleChildNode()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(FormulaTokenNode child)
FormulaTokenNode
getChild()
int
getType()
boolean
hasOperands()
boolean
isOp()
static SingleChildNode
newInstance(NodeId nodeId)
FormulaTokenNode
normalize(FormulaTokenParser parser)
void
setChild(FormulaTokenNode child)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.ss.formula.token.FormulaTokenNode
accept, getNodeId, visitChildren
-
-
-
-
Field Detail
-
child
protected FormulaTokenNode child
-
-
Method Detail
-
newInstance
public static SingleChildNode newInstance(NodeId nodeId)
-
getChild
public FormulaTokenNode getChild()
-
setChild
public void setChild(FormulaTokenNode child)
-
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
-
-