public class RefNode extends Object implements FormulaTokenNode
Modifier and Type | Field and Description |
---|---|
protected ExternalRefNode |
externalRef |
Constructor and Description |
---|
RefNode(long hash) |
RefNode(long hash,
ExternalRefNode externalRef) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(TokenNodeVisitor<R> visitor)
Use the given [visitor] to visit this node.
|
boolean |
add(FormulaTokenNode child) |
ExternalRefNode |
getExternalRef() |
long |
getHash() |
NodeId |
getNodeId() |
int |
getType() |
boolean |
hasOperands() |
boolean |
isOp() |
FormulaTokenNode |
normalize(FormulaTokenParser parser) |
void |
setExternalRef(ExternalRefNode externalRef) |
String |
toString() |
<R> List<R> |
visitChildren(TokenNodeVisitor<R> visitor)
Use the given [visitor] to visit all of the children of this node.
|
protected ExternalRefNode externalRef
public RefNode(long hash)
public RefNode(long hash, ExternalRefNode externalRef)
public long getHash()
public ExternalRefNode getExternalRef()
public void setExternalRef(ExternalRefNode externalRef)
public NodeId getNodeId()
getNodeId
in interface FormulaTokenNode
public int getType()
getType
in interface FormulaTokenNode
public boolean hasOperands()
hasOperands
in interface FormulaTokenNode
public boolean isOp()
isOp
in interface FormulaTokenNode
public boolean add(FormulaTokenNode child)
add
in interface FormulaTokenNode
public FormulaTokenNode normalize(FormulaTokenParser parser)
normalize
in interface FormulaTokenNode
public <R> R accept(TokenNodeVisitor<R> visitor)
FormulaTokenNode
accept
in interface FormulaTokenNode
public <R> List<R> visitChildren(TokenNodeVisitor<R> visitor)
FormulaTokenNode
visitChildren
in interface FormulaTokenNode
Copyright © 2023. All rights reserved.