⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syntaxtreenode.java

📁 一些基本的编译文法的描述 基于java的
💻 JAVA
字号:
/** * * @author zhaowei */public class SyntaxTreeNode {    private String value;    private SyntaxTreeNode child;    private SyntaxTreeNode sibling;    public SyntaxTreeNode() {        this.value = "";        this.child = null;        this.sibling = null;    }    public SyntaxTreeNode(String value,SyntaxTreeNode child,SyntaxTreeNode sibling) {        this.value = value;        this.child = child;        this.sibling = sibling;    }    public String getValue() {        return this.value;    }    public SyntaxTreeNode getChild() {        return this.child;    }    public SyntaxTreeNode getSibling() {        return this.sibling;    }    public void setValue(String value) {        this.value = value;    }    public void setChild(SyntaxTreeNode child) {        this.child = child;    }    public void setSibling(SyntaxTreeNode sibling) {        this.sibling = sibling;    }    public SyntaxTreeNode getLastSibling() {        SyntaxTreeNode stn = this;        if(stn!=null) {            while(stn.getSibling()!=null) {                stn = stn.getSibling();            }        }        return stn;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -