Package org.apache.poi.ss.formula.token
Class ArrayColumnsNode
- java.lang.Object
-
- org.apache.poi.ss.formula.token.ArrayColumnsNode
-
- All Implemented Interfaces:
FormulaTokenNode
public class ArrayColumnsNode extends Object implements FormulaTokenNode
{1,2,3} is parsed to 1ArrayColumnsNode. {3;4;5} is parsed to 3ArrayColumnsNode. Check use-array-constants-in-array-formulas.
-
-
Constructor Summary
Constructors Constructor Description ArrayColumnsNode()ArrayColumnsNode(FormulaTokenNode[][] children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(TokenNodeVisitor<R> visitor)Use the given [visitor] to visit this node.booleanadd(FormulaTokenNode child)FormulaTokenNode[][]getChildren()intgetColCount()NodeIdgetNodeId()intgetRowCount()intgetType()booleanhasOperands()booleanisOp()FormulaTokenNodenormalize(FormulaTokenParser parser)StringtoString()<R> List<R>visitChildren(TokenNodeVisitor<R> visitor)Use the given [visitor] to visit all of the children of this node.
-
-
-
Constructor Detail
-
ArrayColumnsNode
public ArrayColumnsNode()
-
ArrayColumnsNode
public ArrayColumnsNode(FormulaTokenNode[][] children)
-
-
Method Detail
-
getRowCount
public int getRowCount()
-
getColCount
public int getColCount()
-
getChildren
public FormulaTokenNode[][] getChildren()
-
getNodeId
public NodeId getNodeId()
- Specified by:
getNodeIdin interfaceFormulaTokenNode
-
getType
public int getType()
- Specified by:
getTypein interfaceFormulaTokenNode
-
hasOperands
public boolean hasOperands()
- Specified by:
hasOperandsin interfaceFormulaTokenNode
-
isOp
public boolean isOp()
- Specified by:
isOpin interfaceFormulaTokenNode
-
add
public boolean add(FormulaTokenNode child)
- Specified by:
addin interfaceFormulaTokenNode
-
normalize
public FormulaTokenNode normalize(FormulaTokenParser parser)
- Specified by:
normalizein interfaceFormulaTokenNode
-
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.- Specified by:
acceptin interfaceFormulaTokenNode
-
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.- Specified by:
visitChildrenin interfaceFormulaTokenNode
-
-