类 SyntaxNode

java.lang.Object
com.grapecity.documents.excel.expressions.SyntaxNode
直接已知子类:
NonTerminalNode, TerminalNode

public abstract class SyntaxNode extends Object
Represents a node in the syntax tree. The node can be terminal or non-terminal.
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    Clones the syntax node if the node is mutable.
    boolean
    Checks whether the SyntaxNode equal to another.
    int
    This object doesn't support getting hash code, because all fields are mutable.
    static SyntaxNode
    Parse(String text)
    Loads a SyntaxNode from a string that contains formula, optionallyspecifying context.
    static SyntaxNode
    Parse(String text, ParseContext context)
    Loads a SyntaxNode from a string that contains formula, optionallyspecifying context.
    Returns the formula text for this node, optionally specifying context.
    Returns the formula text for this node, optionally specifying context.

    从类继承的方法 java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • SyntaxNode

      public SyntaxNode()
  • 方法详细资料

    • toString

      public String toString()
      Returns the formula text for this node, optionally specifying context.
      覆盖:
      toString 在类中 Object
    • toString

      public String toString(UnParseContext context)
      Returns the formula text for this node, optionally specifying context.
      参数:
      context - Options for converting FormulaSyntaxTree tostring.
    • Parse

      public static SyntaxNode Parse(String text)
      Loads a SyntaxNode from a string that contains formula, optionallyspecifying context.
      参数:
      text - A string that contains formula.
      返回:
      A SyntaxNode populated from the string that contains formula.
    • Parse

      public static SyntaxNode Parse(String text, ParseContext context)
      Loads a SyntaxNode from a string that contains formula, optionallyspecifying context.
      参数:
      text - A string that contains formula.
      context - A ParseContext that specifies base row, base columnand R1C1 reference style.
      返回:
      A SyntaxNode populated from the string that contains formula.
    • equals

      public boolean equals(Object obj)
      Checks whether the SyntaxNode equal to another.
      覆盖:
      equals 在类中 Object
      参数:
      obj - Another syntax node.
      返回:
      Whether the current node equals to the specified node.
    • hashCode

      public int hashCode()
      This object doesn't support getting hash code, because all fields are mutable.
      覆盖:
      hashCode 在类中 Object
      返回:
      The hash code of the current type.
    • clone

      public final SyntaxNode clone()
      Clones the syntax node if the node is mutable.
      覆盖:
      clone 在类中 Object
      返回:
      If the node is mutable, returns the cloned object. Otherwise, returnsthe equivalent object from object pool.