类 FormulaSyntaxTree
java.lang.Object
com.grapecity.documents.excel.expressions.FormulaSyntaxTree
- 所有已实现的接口:
Cloneable
Represents a formula.
-
构造器概要
-
方法概要
修饰符和类型方法说明final FormulaSyntaxTree
clone()
Creates a copy of theFormulaSyntaxTree
instance.boolean
final SyntaxNode
getRoot()
Gets the root element of the syntax tree for this formula.int
hashCode()
static FormulaSyntaxTree
Creates a newFormulaSyntaxTree
from astring
.static FormulaSyntaxTree
Parse
(String text, ParseContext context) Creates a newFormulaSyntaxTree
from astring
.final void
setRoot
(SyntaxNode value) Sets the root element of the syntax tree for this formula.toString()
Returns the text for this formula.final String
toString
(UnParseContext context) Returns the text for this formula, optionally specifies the formatting behavior.
-
构造器详细资料
-
FormulaSyntaxTree
public FormulaSyntaxTree()
-
-
方法详细资料
-
getRoot
Gets the root element of the syntax tree for this formula.- 返回:
- The root
SyntaxNode
of the formula syntax tree.
-
setRoot
Sets the root element of the syntax tree for this formula.The root
SyntaxNode
of the formula syntax tree. -
Parse
Creates a newFormulaSyntaxTree
from astring
.- 参数:
text
- Astring
that contains formula.- 返回:
- A
FormulaSyntaxTree
populated from thestring
thatcontains formula.
-
Parse
Creates a newFormulaSyntaxTree
from astring
.- 参数:
text
- Astring
that contains formula.context
- AParseContext
that specifies base row, base columnand R1C1 reference style.- 返回:
- A
FormulaSyntaxTree
populated from thestring
thatcontains formula.
-
toString
Returns the text for this formula. -
toString
Returns the text for this formula, optionally specifies the formatting behavior.- 参数:
context
- AnUnParseContext
that specifies row, column and R1C1reference style.- 返回:
- A
string
containing the formula.
-
clone
Creates a copy of theFormulaSyntaxTree
instance. -
equals
-
hashCode
public int hashCode()
-