private void require(boolean z, String problem, String solution) throws SemanticException { // TODO: Direct to a common error handler, rather than through the parser. if (!z && parser!=null) parser.requireFailed(problem, solution); if (!z) { int lineNum = inputState.getLine(), colNum = inputState.getColumn(); throw new SemanticException(problem + ";\n solution: " + solution, getFilename(), lineNum, colNum); } } public GroovyLexer(InputStream in) {
protected final void mBIG_SUFFIX(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = BIG_SUFFIX; int _saveIndex; switch ( LA(1)) { case 'g': { match('g'); break; } case 'G': { match('G'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
if ( _cnt669>=1 ) { break _loop669; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
if ( _cnt746>=1 ) { break _loop746; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
if ( _cnt675>=1 ) { break _loop675; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}