• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1org.antlr.runtime.tree.RewriteCardinalityException = function(elementDescription) {
2    this.elementDescription = elementDescription;
3};
4
5/** Base class for all exceptions thrown during AST rewrite construction.
6 *  This signifies a case where the cardinality of two or more elements
7 *  in a subrule are different: (ID INT)+ where |ID|!=|INT|
8 */
9org.antlr.lang.extend(org.antlr.runtime.tree.RewriteCardinalityException, Error, {
10    getMessage: function() {
11		if ( org.antlr.lang.isString(this.elementDescription) ) {
12			return this.elementDescription;
13		}
14		return null;
15	},
16    name: function() {
17        return "org.antlr.runtime.tree.RewriteCardinalityException";
18    }
19});
20