Tabnine Logo
NoViableAltForCharException
Code IndexAdd Tabnine to your IDE (free)

How to use
NoViableAltForCharException
in
antlr

Best Java code snippets using antlr.NoViableAltForCharException (Showing top 20 results out of 522)

Refine searchRefine arrow

  • ANTLRStringBuffer
  • Token
  • BitSet
  • TokenStreamRecognitionException
  • TokenStreamException
  • TokenStreamIOException
origin: jenkinsci/jenkins

public final void mATOM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  int _ttype; Token _token=null; int _begin=text.length();
  _ttype = ATOM;
  int _saveIndex;
  
  {
  int _cnt26=0;
  _loop26:
  do {
    if ((_tokenSet_0.member(LA(1)))) {
      mIDENTIFIER_PART(false);
    }
    else {
      if ( _cnt26>=1 ) { break _loop26; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
    }
    
    _cnt26++;
  } while (true);
  }
  if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
    _token = makeToken(_ttype);
    _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  }
  _returnToken = _token;
}

origin: jenkinsci/jenkins

    theRetToken=_returnToken;
  else if ((_tokenSet_0.member(LA(1)))) {
    mATOM(true);
    theRetToken=_returnToken;
else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
_ttype = _returnToken.getType();
_ttype = testLiteralsTable(_ttype);
_returnToken.setType(_ttype);
return _returnToken;
throw new TokenStreamRecognitionException(e);
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
throw new TokenStreamException(cse.getMessage());
origin: hibernate/hibernate-orm

  if ((_tokenSet_0.member(LA(1)))) {
    mIDENT(true);
    theRetToken=_returnToken;
else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
_ttype = _returnToken.getType();
_returnToken.setType(_ttype);
return _returnToken;
throw new TokenStreamRecognitionException(e);
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
throw new TokenStreamException(cse.getMessage());
origin: jenkinsci/jenkins

public final void mTOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  int _ttype; Token _token=null; int _begin=text.length();
  _ttype = TOKEN;
  int _saveIndex;
  
  {
  int _cnt18=0;
  _loop18:
  do {
    if (((LA(1) >= '0' && LA(1) <= '9'))) {
      matchRange('0','9');
    }
    else {
      if ( _cnt18>=1 ) { break _loop18; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
    }
    
    _cnt18++;
  } while (true);
  }
  if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
    _token = makeToken(_ttype);
    _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  }
  _returnToken = _token;
}

origin: hibernate/hibernate-orm

else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
_ttype = _returnToken.getType();
_returnToken.setType(_ttype);
return _returnToken;
throw new TokenStreamRecognitionException(e);
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
throw new TokenStreamException(cse.getMessage());
origin: jenkinsci/jenkins

public final void mWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  int _ttype; Token _token=null; int _begin=text.length();
  _ttype = WS;
  int _saveIndex;
      if ( _cnt21>=1 ) { break _loop21; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
    _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
origin: hibernate/hibernate-orm

  theRetToken=_returnToken;
else if ((_tokenSet_0.member(LA(1))) && (true)) {
  mNOT_STMT_END(true);
  theRetToken=_returnToken;
else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
_ttype = _returnToken.getType();
_ttype = testLiteralsTable(_ttype);
_returnToken.setType(_ttype);
return _returnToken;
throw new TokenStreamRecognitionException(e);
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
throw new TokenStreamException(cse.getMessage());
origin: jenkinsci/jenkins

public final void mWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  int _ttype; Token _token=null; int _begin=text.length();
  _ttype = WS;
  int _saveIndex;
      if ( _cnt29>=1 ) { break _loop29; } else {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));
origin: jenkinsci/jenkins

else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
_ttype = _returnToken.getType();
_ttype = testLiteralsTable(_ttype);
_returnToken.setType(_ttype);
return _returnToken;
throw new TokenStreamRecognitionException(e);
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
throw new TokenStreamException(cse.getMessage());
origin: hibernate/hibernate-orm

protected final void mID_LETTER(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  int _ttype; Token _token=null; int _begin=text.length();
  _ttype = ID_LETTER;
  int _saveIndex;
  
  if ((_tokenSet_0.member(LA(1)))) {
    mID_START_LETTER(false);
  }
  else if (((LA(1) >= '0' && LA(1) <= '9'))) {
    matchRange('0','9');
  }
  else {
    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;
}

origin: hibernate/hibernate-orm

    theRetToken=_returnToken;
  else if ((_tokenSet_0.member(LA(1)))) {
    mIDENT(true);
    theRetToken=_returnToken;
else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
_ttype = _returnToken.getType();
_returnToken.setType(_ttype);
return _returnToken;
throw new TokenStreamRecognitionException(e);
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
throw new TokenStreamException(cse.getMessage());
origin: hibernate/hibernate-orm

protected final void mID_LETTER(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  int _ttype; Token _token=null; int _begin=text.length();
  _ttype = ID_LETTER;
  int _saveIndex;
  
  if ((_tokenSet_0.member(LA(1)))) {
    mID_START_LETTER(false);
  }
  else if (((LA(1) >= '0' && LA(1) <= '9'))) {
    matchRange('0','9');
  }
  else {
    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;
}

origin: apache/geode

    theRetToken=_returnToken;
  else if ((LA(1)=='/') && (_tokenSet_0.member(LA(2)))) {
    mRegionPath(true);
    theRetToken=_returnToken;
    theRetToken=_returnToken;
  else if ((_tokenSet_1.member(LA(1)))) {
    mIdentifier(true);
    theRetToken=_returnToken;
else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
_ttype = _returnToken.getType();
_returnToken.setType(_ttype);
return _returnToken;
throw new TokenStreamRecognitionException(e);
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
throw new TokenStreamException(cse.getMessage());
origin: checkstyle/checkstyle

protected final void mBINARY_DIGIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  int _ttype; Token _token=null; int _begin=text.length();
  _ttype = BINARY_DIGIT;
  int _saveIndex;
  
  {
  switch ( LA(1)) {
  case '0':
  {
    match('0');
    break;
  }
  case '1':
  {
    match('1');
    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;
}

origin: checkstyle/checkstyle

    theRetToken=_returnToken;
  else if ((_tokenSet_0.member(LA(1)))) {
    mIDENT(true);
    theRetToken=_returnToken;
else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
_ttype = _returnToken.getType();
_returnToken.setType(_ttype);
return _returnToken;
throw new TokenStreamRecognitionException(e);
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
throw new TokenStreamException(cse.getMessage());
origin: checkstyle/checkstyle

public final void mCHAR_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  int _ttype; Token _token=null; int _begin=text.length();
  _ttype = CHAR_LITERAL;
  int _saveIndex;
  
  match('\'');
  {
  if ((LA(1)=='\\')) {
    mESC(false);
  }
  else if ((_tokenSet_3.member(LA(1)))) {
    matchNot('\'');
  }
  else {
    throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
  }
  
  }
  match('\'');
  if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
    _token = makeToken(_ttype);
    _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  }
  _returnToken = _token;
}

origin: org.glassfish.external/antlr

else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
_ttype = _returnToken.getType();
_returnToken.setType(_ttype);
return _returnToken;
throw new TokenStreamRecognitionException(e);
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
throw new TokenStreamException(cse.getMessage());
origin: hibernate/hibernate-orm

protected final void mFLOAT_SUFFIX(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  int _ttype; Token _token=null; int _begin=text.length();
  _ttype = FLOAT_SUFFIX;
  int _saveIndex;
  
  switch ( LA(1)) {
  case 'f':
  {
    match('f');
    break;
  }
  case 'd':
  {
    match('d');
    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;
}

origin: org.glassfish.external/antlr

else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
_ttype = _returnToken.getType();
_returnToken.setType(_ttype);
return _returnToken;
throw new TokenStreamRecognitionException(e);
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
throw new TokenStreamException(cse.getMessage());
origin: apache/geode

protected final void mNameFirstCharacter(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  int _ttype; Token _token=null; int _begin=text.length();
  _ttype = NameFirstCharacter;
  int _saveIndex;
  
  {
  if ((_tokenSet_2.member(LA(1)))) {
    mLETTER(false);
  }
  else if ((LA(1)=='_')) {
    match('_');
  }
  else {
    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;
}

antlrNoViableAltForCharException

Most used methods

  • <init>
  • getColumn
  • getLine

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now