01: package org.antlr.runtime;
02:
03: import org.antlr.runtime.tree.TreeNodeStream;
04: import org.antlr.runtime.tree.Tree;
05:
06: /**
07: */
08: public class MismatchedTreeNodeException extends RecognitionException {
09: public int expecting;
10:
11: public MismatchedTreeNodeException() {
12: }
13:
14: public MismatchedTreeNodeException(int expecting,
15: TreeNodeStream input) {
16: super (input);
17: this .expecting = expecting;
18: }
19:
20: public String toString() {
21: return "MismatchedTreeNodeException(" + getUnexpectedType()
22: + "!=" + expecting + ")";
23: }
24: }
|