Class FormulaSyntaxTree
java.lang.Object
com.grapecity.documents.excel.expressions.FormulaSyntaxTree
- All Implemented Interfaces:
Cloneable
Represents a formula.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal FormulaSyntaxTreeclone()Creates a copy of theFormulaSyntaxTreeinstance.booleanDetermines whether the current FormulaSyntaxTree object is equal to another object.final SyntaxNodegetRoot()Gets the root element of the syntax tree for this formula.inthashCode()Returns the hash code for the FormulaSyntaxTree object.static FormulaSyntaxTreeCreates a newFormulaSyntaxTreefrom astring.static FormulaSyntaxTreeParse(String text, ParseContext context) Creates a newFormulaSyntaxTreefrom astring.final voidsetRoot(SyntaxNode value) Sets the root element of the syntax tree for this formula.toString()Returns the text for this formula.final StringtoString(UnParseContext context) Returns the text for this formula, optionally specifies the formatting behavior.
-
Constructor Details
-
FormulaSyntaxTree
public FormulaSyntaxTree()
-
-
Method Details
-
getRoot
Gets the root element of the syntax tree for this formula.- Returns:
- The root
SyntaxNodeof the formula syntax tree.
-
setRoot
Sets the root element of the syntax tree for this formula.The root
SyntaxNodeof the formula syntax tree. -
Parse
Creates a newFormulaSyntaxTreefrom astring.- Parameters:
text- Astringthat contains formula.- Returns:
- A
FormulaSyntaxTreepopulated from thestringthatcontains formula.
-
Parse
Creates a newFormulaSyntaxTreefrom astring.- Parameters:
text- Astringthat contains formula.context- AParseContextthat specifies base row, base columnand R1C1 reference style.- Returns:
- A
FormulaSyntaxTreepopulated from thestringthatcontains formula.
-
toString
Returns the text for this formula. -
toString
Returns the text for this formula, optionally specifies the formatting behavior.- Parameters:
context- AnUnParseContextthat specifies row, column and R1C1reference style.- Returns:
- A
stringcontaining the formula.
-
clone
Creates a copy of theFormulaSyntaxTreeinstance. -
equals
Determines whether the current FormulaSyntaxTree object is equal to another object. -
hashCode
public int hashCode()Returns the hash code for the FormulaSyntaxTree object.
-