RubyLexerBase

io.joern.rubysrc2cpg.parser.RubyLexerBase

Aggregates auxiliary features to RubyLexer in a single place.

Attributes

Graph
Supertypes
class Lexer
trait TokenSource
class Recognizer[Integer, LexerATNSimulator]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def isNumericTokenType(tokenType: Int): Boolean
override def nextToken: Token

Attributes

Definition Classes
Lexer -> TokenSource

Inherited methods

def action(x$0: RuleContext, x$1: Int, x$2: Int): Unit

Attributes

Inherited from:
Recognizer
def addErrorListener(x$0: ANTLRErrorListener): Unit

Attributes

Inherited from:
Recognizer
def consumeQuotedCharAndMaybePopMode(char: Int): Unit

Attributes

Inherited from:
QuotedLiteralHandling
def emit(): Token

Attributes

Inherited from:
Lexer
def emit(x$0: Token): Unit

Attributes

Inherited from:
Lexer
def emitEOF(): Token

Attributes

Inherited from:
Lexer
def getAllTokens(): List[_ <: Token]

Attributes

Inherited from:
Lexer
def getChannel(): Int

Attributes

Inherited from:
Lexer
def getChannelNames(): Array[String]

Attributes

Inherited from:
Lexer
def getCharErrorDisplay(x$0: Int): String

Attributes

Inherited from:
Lexer
def getCharIndex(): Int

Attributes

Inherited from:
Lexer

Attributes

Inherited from:
Lexer
def getErrorDisplay(x$0: Int): String

Attributes

Inherited from:
Lexer
def getErrorDisplay(x$0: String): String

Attributes

Inherited from:
Lexer
def getErrorHeader(x$0: RecognitionException): String

Attributes

Inherited from:
Recognizer
def getErrorListenerDispatch(): ANTLRErrorListener

Attributes

Inherited from:
Recognizer
def getErrorListeners(): List[_ <: ANTLRErrorListener]

Attributes

Inherited from:
Recognizer
def getInputStream(): CharStream

Attributes

Inherited from:
Lexer
def getInterpreter(): LexerATNSimulator

Attributes

Inherited from:
Recognizer
def getLine(): Int

Attributes

Inherited from:
Lexer
def getModeNames(): Array[String]

Attributes

Inherited from:
Lexer
def getParseInfo(): ParseInfo

Attributes

Inherited from:
Recognizer
def getRuleIndexMap(): Map[String, Integer]

Attributes

Inherited from:
Recognizer
def getSerializedATN(): String

Attributes

Inherited from:
Recognizer
def getSourceName(): String

Attributes

Inherited from:
Lexer
final def getState(): Int

Attributes

Inherited from:
Recognizer
def getText(): String

Attributes

Inherited from:
Lexer
def getToken(): Token

Attributes

Inherited from:
Lexer
def getTokenFactory(): TokenFactory[_ <: Token]

Attributes

Inherited from:
Lexer
def getTokenType(x$0: String): Int

Attributes

Inherited from:
Recognizer
def getTokenTypeMap(): Map[String, Integer]

Attributes

Inherited from:
Recognizer
def getType(): Int

Attributes

Inherited from:
Lexer
def getVocabulary(): Vocabulary

Attributes

Inherited from:
Recognizer
def heredocEndAhead(partialHeredoc: String): Boolean

Attributes

See also
Inherited from:
HereDocHandling
def isEndOfInterpolation: Boolean

Attributes

Inherited from:
InterpolationHandling
protected def isStartOfRegexLiteral: Boolean

To be invoked when encountering /, deciding if it should emit a REGULAR_EXPRESSION_START token.

To be invoked when encountering /, deciding if it should emit a REGULAR_EXPRESSION_START token.

Attributes

Inherited from:
RegexLiteralHandling
def mode(x$0: Int): Unit

Attributes

Inherited from:
Lexer
def more(): Unit

Attributes

Inherited from:
Lexer
def notifyListeners(x$0: LexerNoViableAltException): Unit

Attributes

Inherited from:
Lexer

Attributes

Inherited from:
InterpolationHandling
def popMode(): Int

Attributes

Inherited from:
Lexer
def popQuotedDelimiter(): Unit

Attributes

Inherited from:
QuotedLiteralHandling

Attributes

Inherited from:
QuotedLiteralHandling
def precpred(x$0: RuleContext, x$1: Int): Boolean

Attributes

Inherited from:
Recognizer
def pushInterpolationEndTokenType(endTokenType: Int): Unit

Attributes

Inherited from:
InterpolationHandling
def pushMode(x$0: Int): Unit

Attributes

Inherited from:
Lexer
def pushQuotedDelimiter(char: Int): Unit

Attributes

Inherited from:
QuotedLiteralHandling
def pushQuotedEndTokenType(endTokenType: Int): Unit

Attributes

Inherited from:
QuotedLiteralHandling
def recover(x$0: RecognitionException): Unit

Attributes

Inherited from:
Lexer
def recover(x$0: LexerNoViableAltException): Unit

Attributes

Inherited from:
Lexer
def removeErrorListener(x$0: ANTLRErrorListener): Unit

Attributes

Inherited from:
Recognizer
def removeErrorListeners(): Unit

Attributes

Inherited from:
Recognizer
def reset(): Unit

Attributes

Inherited from:
Lexer
def sempred(x$0: RuleContext, x$1: Int, x$2: Int): Boolean

Attributes

Inherited from:
Recognizer
def setChannel(x$0: Int): Unit

Attributes

Inherited from:
Lexer
def setCharPositionInLine(x$0: Int): Unit

Attributes

Inherited from:
Lexer
def setInputStream(x$0: IntStream): Unit

Attributes

Inherited from:
Lexer
def setInterpreter(x$0: LexerATNSimulator): Unit

Attributes

Inherited from:
Recognizer
def setLine(x$0: Int): Unit

Attributes

Inherited from:
Lexer
final def setState(x$0: Int): Unit

Attributes

Inherited from:
Recognizer
def setText(x$0: String): Unit

Attributes

Inherited from:
Lexer
def setToken(x$0: Token): Unit

Attributes

Inherited from:
Lexer
def setTokenFactory(x$0: TokenFactory[_ <: <FromJavaObject>]): Unit

Attributes

Inherited from:
Lexer
def setType(x$0: Int): Unit

Attributes

Inherited from:
Lexer
def skip(): Unit

Attributes

Inherited from:
Lexer

Inherited and Abstract methods

def getATN(): ATN

Attributes

Inherited from:
Recognizer
def getGrammarFileName(): String

Attributes

Inherited from:
Recognizer
def getRuleNames(): Array[String]

Attributes

Inherited from:
Recognizer

Deprecated and Inherited methods

@Deprecated
def getTokenErrorDisplay(x$0: Token): String

Attributes

Deprecated
true
Inherited from:
Recognizer
@Deprecated
def getTokenNames(): Array[String]

Attributes

Deprecated
true
Inherited from:
Lexer

Concrete fields

protected var previousNonWsToken: Option[Token]

The previously (non-WS) emitted token (in DEFAULT_CHANNEL.)

The previously (non-WS) emitted token (in DEFAULT_CHANNEL.)

Attributes

protected var previousToken: Option[Token]

The previously emitted token (in DEFAULT_CHANNEL.)

The previously emitted token (in DEFAULT_CHANNEL.)

Attributes

Inherited fields

var _channel: Int

Attributes

Inherited from:
Lexer
var _hitEOF: Boolean

Attributes

Inherited from:
Lexer
var _input: CharStream

Attributes

Inherited from:
Lexer
var _mode: Int

Attributes

Inherited from:
Lexer
final val _modeStack: IntegerStack

Attributes

Inherited from:
Lexer
var _text: String

Attributes

Inherited from:
Lexer
var _token: Token

Attributes

Inherited from:
Lexer

Attributes

Inherited from:
Lexer

Attributes

Inherited from:
Lexer
var _tokenStartLine: Int

Attributes

Inherited from:
Lexer
var _type: Int

Attributes

Inherited from:
Lexer