java.lang.Object
com.intellij.lexer.Lexer
com.intellij.lexer.LexerBase
com.intellij.lexer.DelegateLexer
com.intellij.lexer.MergingLexerAdapterBase
- 直接已知子类:
MergingLexerAdapter
-
字段概要
从类继承的字段 com.intellij.lexer.DelegateLexer
myDelegate -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidadvance()Advances the lexer to the next token.@NotNull LexerPositionReturns the current position and state of the lexer.abstract MergeFunctionintgetState()Returns the current state of the lexer.intReturns the end offset of the current token.intReturns the start offset of the current token.Returns the token at the current position of the lexer ornullif lexing is finished.voidrestore(@NotNull LexerPosition position) Restores the lexer to the specified state and position.voidstart(@NotNull CharSequence buffer, int startOffset, int endOffset, int initialState) Prepare for lexing character data frombufferpassed.toString()从类继承的方法 com.intellij.lexer.DelegateLexer
getBufferEnd, getBufferSequence, getDelegate从类继承的方法 com.intellij.lexer.Lexer
getTokenSequence, getTokenText, start, start
-
构造器详细资料
-
MergingLexerAdapterBase
-
-
方法详细资料
-
getMergeFunction
-
start
public void start(@NotNull @NotNull CharSequence buffer, int startOffset, int endOffset, int initialState) 从类复制的说明:LexerPrepare for lexing character data frombufferpassed. Internal lexer state is supposed to beinitialState. It is guaranteed that the value of initialState is the same as returned byLexer.getState()method of this lexer at conditionstartOffset=getTokenStart(). This method is used to incrementally re-lex changed characters using lexing data acquired from this particular lexer sometime in the past.- 覆盖:
start在类中DelegateLexer- 参数:
buffer- character data for lexing.startOffset- offset to start lexing fromendOffset- offset to stop lexing atinitialState- the initial state of the lexer.
-
getState
public int getState()从类复制的说明:LexerReturns the current state of the lexer.- 覆盖:
getState在类中DelegateLexer- 返回:
- the lexer state.
-
getTokenType
从类复制的说明:LexerReturns the token at the current position of the lexer ornullif lexing is finished.- 覆盖:
getTokenType在类中DelegateLexer- 返回:
- the current token.
-
getTokenStart
public int getTokenStart()从类复制的说明:LexerReturns the start offset of the current token.- 覆盖:
getTokenStart在类中DelegateLexer- 返回:
- the current token start offset.
-
getTokenEnd
public int getTokenEnd()从类复制的说明:LexerReturns the end offset of the current token.- 覆盖:
getTokenEnd在类中DelegateLexer- 返回:
- the current token end offset.
-
advance
public void advance()从类复制的说明:LexerAdvances the lexer to the next token.- 覆盖:
advance在类中DelegateLexer
-
getOriginal
-
restore
从类复制的说明:LexerRestores the lexer to the specified state and position. -
toString
-
getCurrentPosition
从类复制的说明:LexerReturns the current position and state of the lexer.- 覆盖:
getCurrentPosition在类中LexerBase- 返回:
- the lexer position and state.
-