Package org.apache.poi.ss.formula.token
Class BracketNode
- java.lang.Object
-
- org.apache.poi.ss.formula.token.BracketNode
-
- All Implemented Interfaces:
FormulaTokenNode
public class BracketNode extends Object implements FormulaTokenNode
-
-
Constructor Summary
Constructors Constructor Description BracketNode(FormulaTokenNode left)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(TokenNodeVisitor<R> visitor)
Use the given [visitor] to visit this node.boolean
add(FormulaTokenNode child)
FormulaTokenNode
getChild()
FormulaTokenNode
getLeft()
NodeId
getNodeId()
FormulaTokenNode
getRight()
int
getType()
boolean
hasOperands()
boolean
isOp()
FormulaTokenNode
normalize(FormulaTokenParser parser)
FormulaTokenNode
normalize(FormulaTokenParser parser, ExternalRefNode externalRef)
void
setRight(FormulaTokenNode right)
long
toRefHash(FormulaTokenParser parser)
String
toString()
<R> List<R>
visitChildren(TokenNodeVisitor<R> visitor)
Use the given [visitor] to visit all of the children of this node.
-
-
-
Constructor Detail
-
BracketNode
public BracketNode(FormulaTokenNode left)
-
-
Method Detail
-
getLeft
public FormulaTokenNode getLeft()
-
getChild
public FormulaTokenNode getChild()
-
getRight
public FormulaTokenNode getRight()
-
setRight
public void setRight(FormulaTokenNode right)
-
getNodeId
public NodeId getNodeId()
- Specified by:
getNodeId
in interfaceFormulaTokenNode
-
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
-
normalize
public FormulaTokenNode normalize(FormulaTokenParser parser, ExternalRefNode externalRef)
-
accept
public <R> R accept(TokenNodeVisitor<R> visitor)
Description copied from interface:FormulaTokenNode
Use the given [visitor] to visit this node. Return the value returned by the visitor as a result of visiting this node.- Specified by:
accept
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
-
toRefHash
public long toRefHash(FormulaTokenParser parser)
-
-