类 FormulaSyntaxTree

java.lang.Object
com.grapecity.documents.excel.expressions.FormulaSyntaxTree
所有已实现的接口:
Cloneable

public class FormulaSyntaxTree extends Object implements Cloneable
Represents a formula.
  • 构造器详细资料

    • FormulaSyntaxTree

      public FormulaSyntaxTree()
  • 方法详细资料

    • getRoot

      public final SyntaxNode getRoot()
      Gets the root element of the syntax tree for this formula.
      返回:
      The root SyntaxNode of the formula syntax tree.
    • setRoot

      public final void setRoot(SyntaxNode value)
      Sets the root element of the syntax tree for this formula.

      The root SyntaxNode of the formula syntax tree.

    • Parse

      public static FormulaSyntaxTree Parse(String text)
      Creates a new FormulaSyntaxTree from a string.
      参数:
      text - A string that contains formula.
      返回:
      A FormulaSyntaxTree populated from the string thatcontains formula.
    • Parse

      public static FormulaSyntaxTree Parse(String text, ParseContext context)
      Creates a new FormulaSyntaxTree from a string.
      参数:
      text - A string that contains formula.
      context - A ParseContext that specifies base row, base columnand R1C1 reference style.
      返回:
      A FormulaSyntaxTree populated from the string thatcontains formula.
    • toString

      public String toString()
      Returns the text for this formula.
      覆盖:
      toString 在类中 Object
      返回:
      A string containing the formula.
    • toString

      public final String toString(UnParseContext context)
      Returns the text for this formula, optionally specifies the formatting behavior.
      参数:
      context - An UnParseContext that specifies row, column and R1C1reference style.
      返回:
      A string containing the formula.
    • clone

      public final FormulaSyntaxTree clone()
      Creates a copy of the FormulaSyntaxTree instance.
      覆盖:
      clone 在类中 Object
      返回:
      A copy of the FormulaSyntaxTree instance.
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object