Class Kotlin
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
- org.antlr.v4.runtime.Lexer
-
- net.sourceforge.pmd.lang.kotlin.antlr4.Kotlin
-
- All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource
public class Kotlin extends org.antlr.v4.runtime.Lexer
-
-
Field Summary
Fields Modifier and Type Field Description static org.antlr.v4.runtime.atn.ATN
_ATN
protected static org.antlr.v4.runtime.dfa.DFA[]
_decisionToDFA
static String
_serializedATN
protected static org.antlr.v4.runtime.atn.PredictionContextCache
_sharedContextCache
static int
ABSTRACT
static int
ADD
static int
ADD_ASSIGNMENT
static int
ANNOTATION
static int
ARROW
static int
AS
static int
AS_SAFE
static int
ASSIGNMENT
static int
AT
static int
BinLiteral
static int
BooleanLiteral
static int
BREAK
static int
BREAK_AT
static int
BY
static int
CATCH
static String[]
channelNames
static int
CharacterLiteral
static int
CLASS
static int
COLON
static int
COLONCOLON
static int
COMMA
static int
COMPANION
static int
CONJ
static int
CONST
static int
CONSTRUCTOR
static int
CONTINUE
static int
CONTINUE_AT
static int
CROSSINLINE
static int
DATA
static int
DECR
static int
DELEGATE
static int
DelimitedComment
static int
DISJ
static int
DIV
static int
DIV_ASSIGNMENT
static int
DO
static int
DOT
static int
DOUBLE_ARROW
static int
DOUBLE_SEMICOLON
static int
DoubleLiteral
static int
DYNAMIC
static int
ELSE
static int
ELVIS
static int
ENUM
static int
EQEQ
static int
EQEQEQ
static int
EXCL
static int
EXCL_EQ
static int
EXCL_EQEQ
static int
EXTERNAL
static int
FIELD
static int
FieldIdentifier
static int
FILE
static int
FINAL
static int
FINALLY
static int
FloatLiteral
static int
FOR
static int
FUN
static int
GE
static int
GET
static int
GETTER
static int
HASH
static int
HexLiteral
static int
Identifier
static int
IF
static int
IMPORT
static int
IN
static int
INCR
static int
INFIX
static int
INIT
static int
INLINE
static int
INNER
static int
Inside
static int
Inside_Comment
static int
Inside_NL
static int
Inside_WS
static int
IntegerLiteral
static int
INTERFACE
static int
INTERNAL
static int
IS
static int
LabelDefinition
static int
LabelReference
static int
LANGLE
static int
LATEINIT
static int
LCURL
static int
LE
static int
LineComment
static int
LineStrEscapedChar
static int
LineStrExprStart
static int
LineString
static int
LineStrRef
static int
LineStrText
static int
LongLiteral
static int
LPAREN
static int
LSQUARE
static int
MOD
static int
MOD_ASSIGNMENT
static String[]
modeNames
static int
MULT
static int
MULT_ASSIGNMENT
static int
MultiLineNL
static int
MultiLineStrEscapedChar
static int
MultiLineStrExprStart
static int
MultiLineString
static int
MultiLineStringQuote
static int
MultiLineStrRef
static int
MultiLineStrText
static int
NL
static int
NOINLINE
static int
NOT_IN
static int
NOT_IS
static int
NullLiteral
static int
OBJECT
static int
OPEN
static int
OPERATOR
static int
OUT
static int
OVERRIDE
static int
PACKAGE
static int
PARAM
static int
PRIVATE
static int
PROPERTY
static int
PROTECTED
static int
PUBLIC
static int
Q_COLONCOLON
static int
QUEST
static int
QUOTE_CLOSE
static int
QUOTE_OPEN
static int
RANGE
static int
RANGLE
static int
RCURL
static int
RealLiteral
static int
RECEIVER
static int
REIFIED
static int
RESERVED
static int
RETURN
static int
RETURN_AT
static int
RPAREN
static int
RSQUARE
static String[]
ruleNames
static int
SEALED
static int
SEMICOLON
static int
SET
static int
SETPARAM
static int
SETTER
static int
ShebangLine
static int
SINGLE_QUOTE
static int
StrExpr_Comment
static int
StrExpr_IN
static int
StrExpr_NL
static int
StrExpr_WS
static int
StringExpression
static int
SUB
static int
SUB_ASSIGNMENT
static int
SUPER
static int
SUSPEND
static int
TAILREC
static int
THIS
static int
THROW
static String[]
tokenNames
Deprecated.UseVOCABULARY
instead.static int
TRIPLE_QUOTE_CLOSE
static int
TRIPLE_QUOTE_OPEN
static int
TRY
static int
TYPE_ALIAS
static int
TYPEOF
static int
UNICODE_CLASS_LL
static int
UNICODE_CLASS_LM
static int
UNICODE_CLASS_LO
static int
UNICODE_CLASS_LT
static int
UNICODE_CLASS_LU
static int
UNICODE_CLASS_ND
static int
UNICODE_CLASS_NL
static int
VAL
static int
VAR
static int
VARARG
static org.antlr.v4.runtime.Vocabulary
VOCABULARY
static int
WHEN
static int
WHERE
static int
WHILE
static int
WS
-
Fields inherited from class org.antlr.v4.runtime.Lexer
_channel, _factory, _hitEOF, _input, _mode, _modeStack, _text, _token, _tokenFactorySourcePair, _tokenStartCharIndex, _tokenStartCharPositionInLine, _tokenStartLine, _type, DEFAULT_MODE, DEFAULT_TOKEN_CHANNEL, HIDDEN, MAX_CHAR_VALUE, MIN_CHAR_VALUE, MORE, SKIP
-
-
Constructor Summary
Constructors Constructor Description Kotlin(org.antlr.v4.runtime.CharStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.antlr.v4.runtime.atn.ATN
getATN()
String[]
getChannelNames()
String
getGrammarFileName()
String[]
getModeNames()
String[]
getRuleNames()
String
getSerializedATN()
String[]
getTokenNames()
Deprecated.org.antlr.v4.runtime.Vocabulary
getVocabulary()
-
Methods inherited from class org.antlr.v4.runtime.Lexer
emit, emit, emitEOF, getAllTokens, getChannel, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getErrorDisplay, getErrorDisplay, getInputStream, getLine, getSourceName, getText, getToken, getTokenFactory, getType, mode, more, nextToken, notifyListeners, popMode, pushMode, recover, recover, reset, setChannel, setCharPositionInLine, setInputStream, setLine, setText, setToken, setTokenFactory, setType, skip
-
Methods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
-
-
-
-
Field Detail
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA
-
_sharedContextCache
protected static final org.antlr.v4.runtime.atn.PredictionContextCache _sharedContextCache
-
UNICODE_CLASS_LL
public static final int UNICODE_CLASS_LL
- See Also:
- Constant Field Values
-
UNICODE_CLASS_LM
public static final int UNICODE_CLASS_LM
- See Also:
- Constant Field Values
-
UNICODE_CLASS_LO
public static final int UNICODE_CLASS_LO
- See Also:
- Constant Field Values
-
UNICODE_CLASS_LT
public static final int UNICODE_CLASS_LT
- See Also:
- Constant Field Values
-
UNICODE_CLASS_LU
public static final int UNICODE_CLASS_LU
- See Also:
- Constant Field Values
-
UNICODE_CLASS_ND
public static final int UNICODE_CLASS_ND
- See Also:
- Constant Field Values
-
UNICODE_CLASS_NL
public static final int UNICODE_CLASS_NL
- See Also:
- Constant Field Values
-
ShebangLine
public static final int ShebangLine
- See Also:
- Constant Field Values
-
DelimitedComment
public static final int DelimitedComment
- See Also:
- Constant Field Values
-
LineComment
public static final int LineComment
- See Also:
- Constant Field Values
-
WS
public static final int WS
- See Also:
- Constant Field Values
-
NL
public static final int NL
- See Also:
- Constant Field Values
-
RESERVED
public static final int RESERVED
- See Also:
- Constant Field Values
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
LPAREN
public static final int LPAREN
- See Also:
- Constant Field Values
-
RPAREN
public static final int RPAREN
- See Also:
- Constant Field Values
-
LSQUARE
public static final int LSQUARE
- See Also:
- Constant Field Values
-
RSQUARE
public static final int RSQUARE
- See Also:
- Constant Field Values
-
LCURL
public static final int LCURL
- See Also:
- Constant Field Values
-
RCURL
public static final int RCURL
- See Also:
- Constant Field Values
-
MULT
public static final int MULT
- See Also:
- Constant Field Values
-
MOD
public static final int MOD
- See Also:
- Constant Field Values
-
DIV
public static final int DIV
- See Also:
- Constant Field Values
-
ADD
public static final int ADD
- See Also:
- Constant Field Values
-
SUB
public static final int SUB
- See Also:
- Constant Field Values
-
INCR
public static final int INCR
- See Also:
- Constant Field Values
-
DECR
public static final int DECR
- See Also:
- Constant Field Values
-
CONJ
public static final int CONJ
- See Also:
- Constant Field Values
-
DISJ
public static final int DISJ
- See Also:
- Constant Field Values
-
EXCL
public static final int EXCL
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
SEMICOLON
public static final int SEMICOLON
- See Also:
- Constant Field Values
-
ASSIGNMENT
public static final int ASSIGNMENT
- See Also:
- Constant Field Values
-
ADD_ASSIGNMENT
public static final int ADD_ASSIGNMENT
- See Also:
- Constant Field Values
-
SUB_ASSIGNMENT
public static final int SUB_ASSIGNMENT
- See Also:
- Constant Field Values
-
MULT_ASSIGNMENT
public static final int MULT_ASSIGNMENT
- See Also:
- Constant Field Values
-
DIV_ASSIGNMENT
public static final int DIV_ASSIGNMENT
- See Also:
- Constant Field Values
-
MOD_ASSIGNMENT
public static final int MOD_ASSIGNMENT
- See Also:
- Constant Field Values
-
ARROW
public static final int ARROW
- See Also:
- Constant Field Values
-
DOUBLE_ARROW
public static final int DOUBLE_ARROW
- See Also:
- Constant Field Values
-
RANGE
public static final int RANGE
- See Also:
- Constant Field Values
-
COLONCOLON
public static final int COLONCOLON
- See Also:
- Constant Field Values
-
Q_COLONCOLON
public static final int Q_COLONCOLON
- See Also:
- Constant Field Values
-
DOUBLE_SEMICOLON
public static final int DOUBLE_SEMICOLON
- See Also:
- Constant Field Values
-
HASH
public static final int HASH
- See Also:
- Constant Field Values
-
AT
public static final int AT
- See Also:
- Constant Field Values
-
QUEST
public static final int QUEST
- See Also:
- Constant Field Values
-
ELVIS
public static final int ELVIS
- See Also:
- Constant Field Values
-
LANGLE
public static final int LANGLE
- See Also:
- Constant Field Values
-
RANGLE
public static final int RANGLE
- See Also:
- Constant Field Values
-
LE
public static final int LE
- See Also:
- Constant Field Values
-
GE
public static final int GE
- See Also:
- Constant Field Values
-
EXCL_EQ
public static final int EXCL_EQ
- See Also:
- Constant Field Values
-
EXCL_EQEQ
public static final int EXCL_EQEQ
- See Also:
- Constant Field Values
-
AS_SAFE
public static final int AS_SAFE
- See Also:
- Constant Field Values
-
EQEQ
public static final int EQEQ
- See Also:
- Constant Field Values
-
EQEQEQ
public static final int EQEQEQ
- See Also:
- Constant Field Values
-
SINGLE_QUOTE
public static final int SINGLE_QUOTE
- See Also:
- Constant Field Values
-
RETURN_AT
public static final int RETURN_AT
- See Also:
- Constant Field Values
-
CONTINUE_AT
public static final int CONTINUE_AT
- See Also:
- Constant Field Values
-
BREAK_AT
public static final int BREAK_AT
- See Also:
- Constant Field Values
-
FILE
public static final int FILE
- See Also:
- Constant Field Values
-
PACKAGE
public static final int PACKAGE
- See Also:
- Constant Field Values
-
IMPORT
public static final int IMPORT
- See Also:
- Constant Field Values
-
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
-
INTERFACE
public static final int INTERFACE
- See Also:
- Constant Field Values
-
FUN
public static final int FUN
- See Also:
- Constant Field Values
-
OBJECT
public static final int OBJECT
- See Also:
- Constant Field Values
-
VAL
public static final int VAL
- See Also:
- Constant Field Values
-
VAR
public static final int VAR
- See Also:
- Constant Field Values
-
TYPE_ALIAS
public static final int TYPE_ALIAS
- See Also:
- Constant Field Values
-
CONSTRUCTOR
public static final int CONSTRUCTOR
- See Also:
- Constant Field Values
-
BY
public static final int BY
- See Also:
- Constant Field Values
-
COMPANION
public static final int COMPANION
- See Also:
- Constant Field Values
-
INIT
public static final int INIT
- See Also:
- Constant Field Values
-
THIS
public static final int THIS
- See Also:
- Constant Field Values
-
SUPER
public static final int SUPER
- See Also:
- Constant Field Values
-
TYPEOF
public static final int TYPEOF
- See Also:
- Constant Field Values
-
WHERE
public static final int WHERE
- See Also:
- Constant Field Values
-
IF
public static final int IF
- See Also:
- Constant Field Values
-
ELSE
public static final int ELSE
- See Also:
- Constant Field Values
-
WHEN
public static final int WHEN
- See Also:
- Constant Field Values
-
TRY
public static final int TRY
- See Also:
- Constant Field Values
-
CATCH
public static final int CATCH
- See Also:
- Constant Field Values
-
FINALLY
public static final int FINALLY
- See Also:
- Constant Field Values
-
FOR
public static final int FOR
- See Also:
- Constant Field Values
-
DO
public static final int DO
- See Also:
- Constant Field Values
-
WHILE
public static final int WHILE
- See Also:
- Constant Field Values
-
THROW
public static final int THROW
- See Also:
- Constant Field Values
-
RETURN
public static final int RETURN
- See Also:
- Constant Field Values
-
CONTINUE
public static final int CONTINUE
- See Also:
- Constant Field Values
-
BREAK
public static final int BREAK
- See Also:
- Constant Field Values
-
AS
public static final int AS
- See Also:
- Constant Field Values
-
IS
public static final int IS
- See Also:
- Constant Field Values
-
IN
public static final int IN
- See Also:
- Constant Field Values
-
NOT_IS
public static final int NOT_IS
- See Also:
- Constant Field Values
-
NOT_IN
public static final int NOT_IN
- See Also:
- Constant Field Values
-
OUT
public static final int OUT
- See Also:
- Constant Field Values
-
FIELD
public static final int FIELD
- See Also:
- Constant Field Values
-
PROPERTY
public static final int PROPERTY
- See Also:
- Constant Field Values
-
GET
public static final int GET
- See Also:
- Constant Field Values
-
SET
public static final int SET
- See Also:
- Constant Field Values
-
GETTER
public static final int GETTER
- See Also:
- Constant Field Values
-
SETTER
public static final int SETTER
- See Also:
- Constant Field Values
-
RECEIVER
public static final int RECEIVER
- See Also:
- Constant Field Values
-
PARAM
public static final int PARAM
- See Also:
- Constant Field Values
-
SETPARAM
public static final int SETPARAM
- See Also:
- Constant Field Values
-
DELEGATE
public static final int DELEGATE
- See Also:
- Constant Field Values
-
DYNAMIC
public static final int DYNAMIC
- See Also:
- Constant Field Values
-
PUBLIC
public static final int PUBLIC
- See Also:
- Constant Field Values
-
PRIVATE
public static final int PRIVATE
- See Also:
- Constant Field Values
-
PROTECTED
public static final int PROTECTED
- See Also:
- Constant Field Values
-
INTERNAL
public static final int INTERNAL
- See Also:
- Constant Field Values
-
ENUM
public static final int ENUM
- See Also:
- Constant Field Values
-
SEALED
public static final int SEALED
- See Also:
- Constant Field Values
-
ANNOTATION
public static final int ANNOTATION
- See Also:
- Constant Field Values
-
DATA
public static final int DATA
- See Also:
- Constant Field Values
-
INNER
public static final int INNER
- See Also:
- Constant Field Values
-
TAILREC
public static final int TAILREC
- See Also:
- Constant Field Values
-
OPERATOR
public static final int OPERATOR
- See Also:
- Constant Field Values
-
INLINE
public static final int INLINE
- See Also:
- Constant Field Values
-
INFIX
public static final int INFIX
- See Also:
- Constant Field Values
-
EXTERNAL
public static final int EXTERNAL
- See Also:
- Constant Field Values
-
SUSPEND
public static final int SUSPEND
- See Also:
- Constant Field Values
-
OVERRIDE
public static final int OVERRIDE
- See Also:
- Constant Field Values
-
ABSTRACT
public static final int ABSTRACT
- See Also:
- Constant Field Values
-
FINAL
public static final int FINAL
- See Also:
- Constant Field Values
-
OPEN
public static final int OPEN
- See Also:
- Constant Field Values
-
CONST
public static final int CONST
- See Also:
- Constant Field Values
-
LATEINIT
public static final int LATEINIT
- See Also:
- Constant Field Values
-
VARARG
public static final int VARARG
- See Also:
- Constant Field Values
-
NOINLINE
public static final int NOINLINE
- See Also:
- Constant Field Values
-
CROSSINLINE
public static final int CROSSINLINE
- See Also:
- Constant Field Values
-
REIFIED
public static final int REIFIED
- See Also:
- Constant Field Values
-
QUOTE_OPEN
public static final int QUOTE_OPEN
- See Also:
- Constant Field Values
-
TRIPLE_QUOTE_OPEN
public static final int TRIPLE_QUOTE_OPEN
- See Also:
- Constant Field Values
-
RealLiteral
public static final int RealLiteral
- See Also:
- Constant Field Values
-
FloatLiteral
public static final int FloatLiteral
- See Also:
- Constant Field Values
-
DoubleLiteral
public static final int DoubleLiteral
- See Also:
- Constant Field Values
-
LongLiteral
public static final int LongLiteral
- See Also:
- Constant Field Values
-
IntegerLiteral
public static final int IntegerLiteral
- See Also:
- Constant Field Values
-
HexLiteral
public static final int HexLiteral
- See Also:
- Constant Field Values
-
BinLiteral
public static final int BinLiteral
- See Also:
- Constant Field Values
-
BooleanLiteral
public static final int BooleanLiteral
- See Also:
- Constant Field Values
-
NullLiteral
public static final int NullLiteral
- See Also:
- Constant Field Values
-
Identifier
public static final int Identifier
- See Also:
- Constant Field Values
-
LabelReference
public static final int LabelReference
- See Also:
- Constant Field Values
-
LabelDefinition
public static final int LabelDefinition
- See Also:
- Constant Field Values
-
FieldIdentifier
public static final int FieldIdentifier
- See Also:
- Constant Field Values
-
CharacterLiteral
public static final int CharacterLiteral
- See Also:
- Constant Field Values
-
Inside_Comment
public static final int Inside_Comment
- See Also:
- Constant Field Values
-
Inside_WS
public static final int Inside_WS
- See Also:
- Constant Field Values
-
Inside_NL
public static final int Inside_NL
- See Also:
- Constant Field Values
-
QUOTE_CLOSE
public static final int QUOTE_CLOSE
- See Also:
- Constant Field Values
-
LineStrRef
public static final int LineStrRef
- See Also:
- Constant Field Values
-
LineStrText
public static final int LineStrText
- See Also:
- Constant Field Values
-
LineStrEscapedChar
public static final int LineStrEscapedChar
- See Also:
- Constant Field Values
-
LineStrExprStart
public static final int LineStrExprStart
- See Also:
- Constant Field Values
-
TRIPLE_QUOTE_CLOSE
public static final int TRIPLE_QUOTE_CLOSE
- See Also:
- Constant Field Values
-
MultiLineStringQuote
public static final int MultiLineStringQuote
- See Also:
- Constant Field Values
-
MultiLineStrRef
public static final int MultiLineStrRef
- See Also:
- Constant Field Values
-
MultiLineStrText
public static final int MultiLineStrText
- See Also:
- Constant Field Values
-
MultiLineStrEscapedChar
public static final int MultiLineStrEscapedChar
- See Also:
- Constant Field Values
-
MultiLineStrExprStart
public static final int MultiLineStrExprStart
- See Also:
- Constant Field Values
-
MultiLineNL
public static final int MultiLineNL
- See Also:
- Constant Field Values
-
StrExpr_IN
public static final int StrExpr_IN
- See Also:
- Constant Field Values
-
StrExpr_Comment
public static final int StrExpr_Comment
- See Also:
- Constant Field Values
-
StrExpr_WS
public static final int StrExpr_WS
- See Also:
- Constant Field Values
-
StrExpr_NL
public static final int StrExpr_NL
- See Also:
- Constant Field Values
-
Inside
public static final int Inside
- See Also:
- Constant Field Values
-
LineString
public static final int LineString
- See Also:
- Constant Field Values
-
MultiLineString
public static final int MultiLineString
- See Also:
- Constant Field Values
-
StringExpression
public static final int StringExpression
- See Also:
- Constant Field Values
-
channelNames
public static String[] channelNames
-
modeNames
public static String[] modeNames
-
ruleNames
public static final String[] ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
-
tokenNames
@Deprecated public static final String[] tokenNames
Deprecated.UseVOCABULARY
instead.
-
_serializedATN
public static final String _serializedATN
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Method Detail
-
getTokenNames
@Deprecated public String[] getTokenNames()
Deprecated.- Overrides:
getTokenNames
in classorg.antlr.v4.runtime.Lexer
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()
- Overrides:
getVocabulary
in classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getGrammarFileName
public String getGrammarFileName()
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getRuleNames
public String[] getRuleNames()
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getSerializedATN
public String getSerializedATN()
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getChannelNames
public String[] getChannelNames()
- Overrides:
getChannelNames
in classorg.antlr.v4.runtime.Lexer
-
getModeNames
public String[] getModeNames()
- Overrides:
getModeNames
in classorg.antlr.v4.runtime.Lexer
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()
- Specified by:
getATN
in classorg.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
-