public class NameNode extends Object implements FormulaTokenNode
Constructor and Description |
---|
NameNode(int startIndex,
String value) |
NameNode(int startIndex,
String value,
boolean stringOnly,
boolean singleQuote) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(TokenNodeVisitor<R> visitor)
Use the given [visitor] to visit this node.
|
boolean |
add(FormulaTokenNode child) |
NodeId |
getNodeId() |
int |
getStartIndex() |
int |
getType() |
String |
getValue() |
boolean |
hasOperands() |
boolean |
isOp() |
boolean |
isSingleQuote() |
boolean |
isSpecial() |
FormulaTokenNode |
normalize(FormulaTokenParser parser) |
FormulaTokenNode |
normalize(FormulaTokenParser parser,
ExternalRefNode externalRef) |
IntegerNode |
toIntegerNode() |
long |
toRefHash() |
String |
toString() |
<R> List<R> |
visitChildren(TokenNodeVisitor<R> visitor)
Use the given [visitor] to visit all of the children of this node.
|
public NameNode(int startIndex, String value)
public NameNode(int startIndex, String value, boolean stringOnly, boolean singleQuote)
public int getStartIndex()
public String getValue()
public long toRefHash()
public boolean isSingleQuote()
public boolean isSpecial()
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 FormulaTokenNode normalize(FormulaTokenParser parser, ExternalRefNode externalRef)
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
public IntegerNode toIntegerNode()
Copyright © 2023. All rights reserved.