congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Lexer.start
Code IndexAdd Tabnine to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: KronicDeth/intellij-elixir

@Override
public void start(@NotNull CharSequence buffer, int startOffset, int endOffset, int initialState) {
  eexLexer.start(buffer, startOffset, endOffset, initialState & 0xFFFF);
  if (eexLexer.getTokenType() == ELIXIR) {
    elixirLexer.start(buffer, startOffset, endOffset);
  } else {
    elixirLexer.start(buffer, startOffset, endOffset);
  }
}
origin: KronicDeth/intellij-elixir

protected void start(@NotNull CharSequence charSequence) {
  lexer.start(charSequence);
}
origin: KronicDeth/intellij-elixir

private void restoreElixirPosition(@Nullable LexerPosition elixirPosition) {
  if (elixirPosition != null) {
    elixirLexer.start(getBufferSequence(), eexLexer.getTokenStart(), eexLexer.getTokenEnd());
    elixirLexer.restore(elixirPosition);
  }
}
origin: KronicDeth/intellij-elixir

public void advance() {
  if (eexLexer.getTokenType() == ELIXIR) {
    elixirLexer.advance();
    if (elixirLexer.getTokenType() == null) {
      eexLexer.advance();
    }
  } else {
    eexLexer.advance();
    if (eexLexer.getTokenType() == ELIXIR) {
      // start automatically does equivalent of `advance` since `elixirLexer` is also a look-ahead lexer
      elixirLexer.start(getBufferSequence(), eexLexer.getTokenStart(), eexLexer.getTokenEnd());
    }
  }
}
origin: Camelcade/Perl5-IDEA

@Override
public void start(@NotNull CharSequence buffer, int startOffset, int endOffset, int initialState) {
 if (initialState == 0 && myTryCatchEnabled) {
  initialState = -1;
 }
 myMainLexer.start(buffer, startOffset, endOffset, initialState);
 myTokenStart = myTokenEnd = startOffset;
 myTokenType = null;
 myIsSublexing = false;
}
origin: BashSupport/BashSupport

  @Override
  public void start(@NotNull CharSequence buffer, int startOffset, int endOffset, int initialState) {
    int newStartOffset = (startOffset == 0)
        ? prefix.length()
        : startOffset;

    int newEndOffset = (endOffset == buffer.length())
        ? endOffset - suffix.length()
        : endOffset;

    CharSequence newBuffer = buffer.subSequence(newStartOffset, newEndOffset);
    myDelegate.start(newBuffer, 0, newBuffer.length(), initialState);

    this.afterPrefix = false;
    this.delegateEOF = false;
    this.afterEOF = false;
  }
}
origin: BashSupport/BashSupport

private void initTokenListAndCharSequence(Lexer lexer) {
  lexer.start(processedText);
com.intellij.lexerLexerstart

Popular methods of Lexer

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

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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