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

How to use
NoViableAltException
in
antlr

Best Java code snippets using antlr.NoViableAltException (Showing top 20 results out of 540)

origin: jenkinsci/jenkins

throw new NoViableAltException(LT(1), getFilename());
origin: jenkinsci/jenkins

public final Label  term5() throws RecognitionException, TokenStreamException {
  Label l;
  
  Label x;
  
  switch ( LA(1)) {
  case LPAREN:
  case ATOM:
  case STRINGLITERAL:
  {
    l=term6();
    break;
  }
  case NOT:
  {
    match(NOT);
    x=term6();
    l=x.not();
    break;
  }
  default:
  {
    throw new NoViableAltException(LT(1), getFilename());
  }
  }
  return l;
}

origin: jenkinsci/jenkins

public final Label  term2() throws RecognitionException, TokenStreamException {
  Label l;
  
  Label r;
  
  l=term3();
  {
  switch ( LA(1)) {
  case IMPLIES:
  {
    match(IMPLIES);
    r=term3();
    l=l.implies(r);
    break;
  }
  case EOF:
  case IFF:
  case RPAREN:
  {
    break;
  }
  default:
  {
    throw new NoViableAltException(LT(1), getFilename());
  }
  }
  }
  return l;
}

origin: hibernate/hibernate-orm

throw new NoViableAltException(_t);
origin: hibernate/hibernate-orm

throw new NoViableAltException(_t);
origin: hibernate/hibernate-orm

throw new NoViableAltException(_t);
origin: hibernate/hibernate-orm

throw new NoViableAltException(LT(1), getFilename());
origin: checkstyle/checkstyle

throw new NoViableAltException(LT(1), getFilename());
origin: hibernate/hibernate-orm

throw new NoViableAltException(LT(1), getFilename());
origin: hibernate/hibernate-orm

if ( _cnt461>=1 ) { break _loop461; } else {throw new NoViableAltException(_t);}
origin: checkstyle/checkstyle

throw new NoViableAltException(LT(1), getFilename());
origin: hibernate/hibernate-orm

throw new NoViableAltException(_t);
origin: hibernate/hibernate-orm

throw new NoViableAltException(_t);
origin: hibernate/hibernate-orm

throw new NoViableAltException(LT(1), getFilename());
origin: checkstyle/checkstyle

public final void annotationArguments() throws RecognitionException, TokenStreamException {
  
  returnAST = null;
  ASTPair currentAST = new ASTPair();
  AST annotationArguments_AST = null;
  
  if ((_tokenSet_10.member(LA(1))) && (_tokenSet_11.member(LA(2)))) {
    annotationMemberValueInitializer();
    astFactory.addASTChild(currentAST, returnAST);
    annotationArguments_AST = (AST)currentAST.root;
  }
  else if ((LA(1)==IDENT) && (LA(2)==ASSIGN)) {
    annotationMemberValuePairs();
    astFactory.addASTChild(currentAST, returnAST);
    annotationArguments_AST = (AST)currentAST.root;
  }
  else {
    throw new NoViableAltException(LT(1), getFilename());
  }
  
  returnAST = annotationArguments_AST;
}

origin: apache/geode

public final void query() throws RecognitionException, TokenStreamException {
  
  returnAST = null;
  ASTPair currentAST = new ASTPair();
  AST query_AST = null;
  
  {
  if ((LA(1)==TOK_LT||LA(1)==LITERAL_select)) {
    selectExpr();
    astFactory.addASTChild(currentAST, returnAST);
  }
  else if ((_tokenSet_4.member(LA(1)))) {
    expr();
    astFactory.addASTChild(currentAST, returnAST);
  }
  else {
    throw new NoViableAltException(LT(1), getFilename());
  }
  
  }
  query_AST = (AST)currentAST.root;
  returnAST = query_AST;
}

origin: checkstyle/checkstyle

throw new NoViableAltException(LT(1), getFilename());
origin: checkstyle/checkstyle

public final void argList() throws RecognitionException, TokenStreamException {
  
  returnAST = null;
  ASTPair currentAST = new ASTPair();
  AST argList_AST = null;
  
  {
  if (((_tokenSet_12.member(LA(1))))&&(LA(1)!=RPAREN)) {
    expressionList();
    astFactory.addASTChild(currentAST, returnAST);
  }
  else if ((LA(1)==RPAREN)) {
    if ( inputState.guessing==0 ) {
      argList_AST = (AST)currentAST.root;
      argList_AST = astFactory.create(ELIST,"ELIST");
      currentAST.root = argList_AST;
      currentAST.child = argList_AST!=null &&argList_AST.getFirstChild()!=null ?
        argList_AST.getFirstChild() : argList_AST;
      currentAST.advanceChildToEnd();
    }
  }
  else {
    throw new NoViableAltException(LT(1), getFilename());
  }
  
  }
  argList_AST = (AST)currentAST.root;
  returnAST = argList_AST;
}

origin: hibernate/hibernate-orm

throw new NoViableAltException(_t);
origin: checkstyle/checkstyle

public final void lambdaBody() throws RecognitionException, TokenStreamException {
  
  returnAST = null;
  ASTPair currentAST = new ASTPair();
  AST lambdaBody_AST = null;
  
  {
  if ((_tokenSet_12.member(LA(1))) && (_tokenSet_69.member(LA(2)))) {
    expression();
    astFactory.addASTChild(currentAST, returnAST);
  }
  else if ((_tokenSet_36.member(LA(1))) && (_tokenSet_69.member(LA(2)))) {
    statement();
    astFactory.addASTChild(currentAST, returnAST);
  }
  else {
    throw new NoViableAltException(LT(1), getFilename());
  }
  
  }
  lambdaBody_AST = (AST)currentAST.root;
  returnAST = lambdaBody_AST;
}

antlrNoViableAltException

Most used methods

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Reference (javax.naming)
  • JTable (javax.swing)
  • Top plugins for WebStorm
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