Tabnine Logo
CommonTokenStream.lazyInit
Code IndexAdd Tabnine to your IDE (free)

How to use
lazyInit
method
in
org.antlr.v4.runtime.CommonTokenStream

Best Java code snippets using org.antlr.v4.runtime.CommonTokenStream.lazyInit (Showing top 5 results out of 315)

origin: org.antlr/antlr4-runtime

  @Override
  public Token LT(int k) {
    //System.out.println("enter LT("+k+")");
    lazyInit();
    if ( k == 0 ) return null;
    if ( k < 0 ) return LB(-k);
    int i = p;
    int n = 1; // we know tokens[p] is a good one
    // find k good tokens
    while ( n<k ) {
      // skip off-channel tokens, but make sure to not look past EOF
      if (sync(i + 1)) {
        i = nextTokenOnChannel(i + 1, channel);
      }
      n++;
    }
//        if ( i>range ) range = i;
    return tokens.get(i);
  }

origin: com.tunnelvisionlabs/antlr4-runtime

  @Override
  public Token LT(int k) {
    //System.out.println("enter LT("+k+")");
    lazyInit();
    if ( k == 0 ) return null;
    if ( k < 0 ) return LB(-k);
    int i = p;
    int n = 1; // we know tokens[p] is a good one
    // find k good tokens
    while ( n<k ) {
      // skip off-channel tokens, but make sure to not look past EOF
      if (sync(i + 1)) {
        i = nextTokenOnChannel(i + 1, channel);
      }
      n++;
    }
//        if ( i>range ) range = i;
    return tokens.get(i);
  }
 
origin: uk.co.nichesolutions/antlr4-runtime

  @Override
  public Token LT(int k) {
    //System.out.println("enter LT("+k+")");
    lazyInit();
    if ( k == 0 ) return null;
    if ( k < 0 ) return LB(-k);
    int i = p;
    int n = 1; // we know tokens[p] is a good one
    // find k good tokens
    while ( n<k ) {
      // skip off-channel tokens, but make sure to not look past EOF
      if (sync(i + 1)) {
        i = nextTokenOnChannel(i + 1, channel);
      }
      n++;
    }
//        if ( i>range ) range = i;
    return tokens.get(i);
  }

origin: com.impetus.fabric/fabric-jdbc-driver-shaded

  @Override
  public Token LT(int k) {
    //System.out.println("enter LT("+k+")");
    lazyInit();
    if ( k == 0 ) return null;
    if ( k < 0 ) return LB(-k);
    int i = p;
    int n = 1; // we know tokens[p] is a good one
    // find k good tokens
    while ( n<k ) {
      // skip off-channel tokens, but make sure to not look past EOF
      if (sync(i + 1)) {
        i = nextTokenOnChannel(i + 1, channel);
      }
      n++;
    }
//        if ( i>range ) range = i;
    return tokens.get(i);
  }

origin: io.virtdata/virtdata-lib-realer

  @Override
  public Token LT(int k) {
    //System.out.println("enter LT("+k+")");
    lazyInit();
    if ( k == 0 ) return null;
    if ( k < 0 ) return LB(-k);
    int i = p;
    int n = 1; // we know tokens[p] is a good one
    // find k good tokens
    while ( n<k ) {
      // skip off-channel tokens, but make sure to not look past EOF
      if (sync(i + 1)) {
        i = nextTokenOnChannel(i + 1, channel);
      }
      n++;
    }
//        if ( i>range ) range = i;
    return tokens.get(i);
  }

org.antlr.v4.runtimeCommonTokenStreamlazyInit

Popular methods of CommonTokenStream

  • <init>
    Constructs a new CommonTokenStream using the specified token source and filtering tokens to the spec
  • getTokens
  • fill
  • get
  • getHiddenTokensToLeft
  • size
  • LA
  • getHiddenTokensToRight
  • reset
  • seek
  • LB
  • getText
  • LB,
  • getText,
  • getTokenSource,
  • nextTokenOnChannel,
  • previousTokenOnChannel,
  • sync,
  • LT,
  • consume,
  • index

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • BoxLayout (javax.swing)
  • JTable (javax.swing)
  • Top Vim 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