[]
        
立即试用
(Showing Draft Content)

TextNode

Class TextNode


public class TextNode extends ConstNode
表示语法树中的字符串字面量节点。
  • Constructor Details

    • TextNode

      public TextNode(String value)
      string 创建一个新的 TextNode
      Parameters:
      value - 字符串值。该值不能为 nullNothing)。
  • Method Details

    • getValue

      public final String getValue()
      获取该节点的文本。该值不能为 null (Nothing)。
    • setValue

      public final void setValue(String value)
      设置该节点的文本。该值不能为 null (Nothing)。