1 org.antlr.runtime.NoViableAltException = function(grammarDecisionDescription, 2 decisionNumber, 3 stateNumber, 4 input) 5 { 6 org.antlr.runtime.NoViableAltException.superclass.constructor.call(this, input); 7 this.grammarDecisionDescription = grammarDecisionDescription; 8 this.decisionNumber = decisionNumber; 9 this.stateNumber = stateNumber; 10 }; 11 12 org.antlr.lang.extend( 13 org.antlr.runtime.NoViableAltException, 14 org.antlr.runtime.RecognitionException, { 15 toString: function() { 16 if ( this.input instanceof org.antlr.runtime.CharStream ) { 17 return "NoViableAltException('"+this.getUnexpectedType()+"'@["+this.grammarDecisionDescription+"])"; 18 } 19 else { 20 return "NoViableAltException("+this.getUnexpectedType()+"@["+this.grammarDecisionDescription+"])"; 21 } 22 }, 23 name: "org.antlr.runtime.NoViableAltException" 24 }); 25