Package org.intellij.grammar.livePreview
Class LivePreviewLexer
- java.lang.Object
-
- com.intellij.lexer.Lexer
-
- com.intellij.lexer.LexerBase
-
- org.intellij.grammar.livePreview.LivePreviewLexer
-
public class LivePreviewLexer extends com.intellij.lexer.LexerBase
-
-
Constructor Summary
Constructors Constructor Description LivePreviewLexer(com.intellij.openapi.project.Project project, LivePreviewLanguage language)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadvance()static @NotNull java.util.Map<java.lang.String,java.lang.String>collectTokenPattern2Name(@NotNull BnfFile file, @Nullable java.util.Set<java.lang.String> usedInGrammar)intgetBufferEnd()@NotNull java.lang.CharSequencegetBufferSequence()intgetState()intgetTokenEnd()java.util.Collection<org.intellij.grammar.livePreview.LivePreviewLexer.Token>getTokens()intgetTokenStart()@Nullable com.intellij.psi.tree.IElementTypegetTokenType()voidstart(@NotNull java.lang.CharSequence buffer, int startOffset, int endOffset, int initialState)
-
-
-
Constructor Detail
-
LivePreviewLexer
public LivePreviewLexer(com.intellij.openapi.project.Project project, LivePreviewLanguage language)
-
-
Method Detail
-
start
public void start(@NotNull @NotNull java.lang.CharSequence buffer, int startOffset, int endOffset, int initialState)- Specified by:
startin classcom.intellij.lexer.Lexer
-
getState
public int getState()
- Specified by:
getStatein classcom.intellij.lexer.Lexer
-
getTokenType
@Nullable public @Nullable com.intellij.psi.tree.IElementType getTokenType()
- Specified by:
getTokenTypein classcom.intellij.lexer.Lexer
-
getTokenStart
public int getTokenStart()
- Specified by:
getTokenStartin classcom.intellij.lexer.Lexer
-
getTokenEnd
public int getTokenEnd()
- Specified by:
getTokenEndin classcom.intellij.lexer.Lexer
-
advance
public void advance()
- Specified by:
advancein classcom.intellij.lexer.Lexer
-
getBufferSequence
@NotNull public @NotNull java.lang.CharSequence getBufferSequence()
- Specified by:
getBufferSequencein classcom.intellij.lexer.Lexer
-
getBufferEnd
public int getBufferEnd()
- Specified by:
getBufferEndin classcom.intellij.lexer.Lexer
-
getTokens
public java.util.Collection<org.intellij.grammar.livePreview.LivePreviewLexer.Token> getTokens()
-
collectTokenPattern2Name
@NotNull public static @NotNull java.util.Map<java.lang.String,java.lang.String> collectTokenPattern2Name(@NotNull @NotNull BnfFile file, @Nullable @Nullable java.util.Set<java.lang.String> usedInGrammar)
-
-