Class SyntaxNode
java.lang.Object
com.grapecity.documents.excel.expressions.SyntaxNode
- Direct Known Subclasses:
NonTerminalNode,TerminalNode
Represents a node in the syntax tree. The node can be terminal or non-terminal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal SyntaxNodeclone()Clones the syntax node if the node is mutable.booleanChecks whether theSyntaxNodeequal to another.abstract List<SyntaxNode>Gets children of a non-terminal node.inthashCode()This object doesn't support getting hash code, because all fields are mutable.static SyntaxNodeLoads aSyntaxNodefrom a string that contains formula, optionallyspecifying context.static SyntaxNodeParse(String text, ParseContext context) Loads aSyntaxNodefrom a string that contains formula, optionallyspecifying context.toString()Returns the formula text for this node, optionally specifying context.toString(UnParseContext context) Returns the formula text for this node, optionally specifying context.
-
Constructor Details
-
SyntaxNode
public SyntaxNode()
-
-
Method Details
-
getChildren
Gets children of a non-terminal node. Elements are not nullable.- Returns:
- A list containing the child nodes of this SyntaxNode.
-
toString
Returns the formula text for this node, optionally specifying context. -
toString
Returns the formula text for this node, optionally specifying context.- Parameters:
context- Options for convertingFormulaSyntaxTreetostring.
-
Parse
Loads aSyntaxNodefrom a string that contains formula, optionallyspecifying context.- Parameters:
text- Astringthat contains formula.- Returns:
- A
SyntaxNodepopulated from the string that contains formula.
-
Parse
Loads aSyntaxNodefrom a string that contains formula, optionallyspecifying context.- Parameters:
text- Astringthat contains formula.context- AParseContextthat specifies base row, base columnand R1C1 reference style.- Returns:
- A
SyntaxNodepopulated from the string that contains formula.
-
equals
Checks whether theSyntaxNodeequal to another. -
hashCode
public int hashCode()This object doesn't support getting hash code, because all fields are mutable. -
clone
Clones the syntax node if the node is mutable.
-