congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Lexer.getBufferEnd
Code IndexAdd Tabnine to your IDE (free)

How to use
getBufferEnd
method
in
com.intellij.lexer.Lexer

Best Java code snippets using com.intellij.lexer.Lexer.getBufferEnd (Showing top 4 results out of 315)

origin: KronicDeth/intellij-elixir

public int getBufferEnd() {
  // since {@link #getBufferSequence} uses `eexLexer`, so does this.
  return eexLexer.getBufferEnd();
}
origin: Camelcade/Perl5-IDEA

@Override
public int getBufferEnd() {
 return myMainLexer.getBufferEnd();
}
origin: BashSupport/BashSupport

@Override
public int getBufferEnd() {
  //fixme check with specific lexing range
  return myDelegate.getBufferEnd() + prefix.length() + suffix.length();
}
origin: BashSupport/BashSupport

@Override
public void restore(@NotNull final LexerPosition position) {
  final int prefixLength = prefix.length();
  final int newOffset = position.getOffset() - prefixLength;
  if (newOffset == 0) {
    this.afterPrefix = false;
  }
  if (newOffset < myDelegate.getBufferEnd()) {
    this.delegateEOF = false;
    this.afterEOF = false;
  }
  myDelegate.restore(new LexerPosition() {
    @Override
    public int getOffset() {
      return newOffset;
    }
    @Override
    public int getState() {
      return position.getState();
    }
  });
}
com.intellij.lexerLexergetBufferEnd

Popular methods of Lexer

  • getTokenStart
  • start
  • advance
  • getTokenEnd
  • getTokenType
  • getBufferSequence
  • getState
  • restore
  • getCurrentPosition
  • getTokenSequence
  • getTokenText
  • getTokenText

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JButton (javax.swing)
  • JOptionPane (javax.swing)
  • JTable (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 12 Jupyter Notebook extensions
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