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

📄 mismatchedtreenodeexception.java

📁 ANTLR(ANother Tool for Language Recognition)它是这样的一种工具
💻 JAVA
字号:
package org.antlr.runtime;import org.antlr.runtime.tree.TreeNodeStream;import org.antlr.runtime.tree.Tree;/** */public class MismatchedTreeNodeException extends RecognitionException {	public int expecting;	public Object foundNode;	public MismatchedTreeNodeException() {	}	public MismatchedTreeNodeException(int expecting, TreeNodeStream input) {		super(input);		if ( input.LT(1) instanceof Tree ) {			Tree t = (Tree)input.LT(1);			line = t.getLine();			charPositionInLine = t.getCharPositionInLine();			// TODO: if DOWN/UP, there is no line info currently		}		this.foundNode = input.LT(1);		this.expecting = expecting;	}	public String toString() {		return "MismatchedTreeNodeException("+getUnexpectedType()+"!="+expecting+")";	}}

⌨️ 快捷键说明

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