Class QlInBslTokenHighlighting
- java.lang.Object
-
- com._1c.g5.v8.dt.ql.bsl.ui.token.highlighting.AbstractTokenHighlighting
-
- com._1c.g5.v8.dt.ql.bsl.ui.token.highlighting.impl.QlInBslTokenHighlighting
-
public class QlInBslTokenHighlighting extends AbstractTokenHighlighting
Special implementation ofAbstractTokenHighlighting
for Ql in Bsl string literals
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ql.bsl.ui.token.highlighting.AbstractTokenHighlighting
startPos, text, tokens
-
-
Constructor Summary
Constructors Constructor Description QlInBslTokenHighlighting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.xtext.parser.antlr.XtextTokenStream
getActualTokenStream(String text)
Initialize token stream - createsTokenStream
for highlighting languageprotected String
getColorIdByTokenType(int type, String defaultColorId)
Get color id for highlighting token by its typeprotected int[]
getDiscardTokenTypes()
Gets discard token types-
Methods inherited from class com._1c.g5.v8.dt.ql.bsl.ui.token.highlighting.AbstractTokenHighlighting
getSourceText, startHighlighting, updateSourceData
-
-
-
-
Method Detail
-
getActualTokenStream
protected org.eclipse.xtext.parser.antlr.XtextTokenStream getActualTokenStream(String text)
Description copied from class:AbstractTokenHighlighting
Initialize token stream - createsTokenStream
for highlighting language- Specified by:
getActualTokenStream
in classAbstractTokenHighlighting
- Parameters:
text
- initial text for highlighting tokens- Returns:
- created
TokenStream
, can't benull
-
getDiscardTokenTypes
protected int[] getDiscardTokenTypes()
Description copied from class:AbstractTokenHighlighting
Gets discard token types- Specified by:
getDiscardTokenTypes
in classAbstractTokenHighlighting
- Returns:
- array of discard token types or empty array
-
getColorIdByTokenType
protected String getColorIdByTokenType(int type, String defaultColorId)
Description copied from class:AbstractTokenHighlighting
Get color id for highlighting token by its type- Specified by:
getColorIdByTokenType
in classAbstractTokenHighlighting
- Parameters:
type
- type of the tokendefaultColorId
- default color id, can't benull
- Returns:
- color id by type, can't be
null
-
-