Package org.apache.poi.ss.formula.token
Class NumberNode<T extends Number>
- java.lang.Object
-
- org.apache.poi.ss.formula.token.DefaultTokenNode<Number>
-
- org.apache.poi.ss.formula.token.NumberNode<T>
-
- All Implemented Interfaces:
FormulaTokenNode
- Direct Known Subclasses:
DoubleNode,IntegerNode
public abstract class NumberNode<T extends Number> extends DefaultTokenNode<Number>
-
-
Field Summary
-
Fields inherited from class org.apache.poi.ss.formula.token.DefaultTokenNode
value
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <R> Raccept(TokenNodeVisitor<R> visitor)Use the given [visitor] to visit this node.booleanadd(FormulaTokenNode child)intgetType()booleanhasOperands()FormulaTokenNodenormalize(FormulaTokenParser parser)abstract booleantoggleNegative()StringtoString()<R> List<R>visitChildren(TokenNodeVisitor<R> visitor)Use the given [visitor] to visit all of the children of this node.-
Methods inherited from class org.apache.poi.ss.formula.token.DefaultTokenNode
getValue, isOp
-
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
getNodeId
-
-
-
-
Method Detail
-
toggleNegative
public abstract boolean toggleNegative()
-
getType
public int getType()
-
hasOperands
public boolean hasOperands()
-
add
public boolean add(FormulaTokenNode child)
-
normalize
public FormulaTokenNode normalize(FormulaTokenParser parser)
-
accept
public <R> R accept(TokenNodeVisitor<R> visitor)
Description copied from interface:FormulaTokenNodeUse the given [visitor] to visit this node. Return the value returned by the visitor as a result of visiting this node.
-
visitChildren
public <R> List<R> visitChildren(TokenNodeVisitor<R> visitor)
Description copied from interface:FormulaTokenNodeUse 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.
-
-