Class: InterpreterRuleContext

Inherits:
ParserRuleContext show all
Defined in:
lib/antlr4/ParserRuleContext.rb

Overview

RuleContext.set_empty(ParserRuleContext.new())

Instance Attribute Summary collapse

Attributes inherited from ParserRuleContext

#children, #exception, #parser, #start, #stop

Attributes inherited from RuleContext

#invokingState, #parentCtx

Instance Method Summary collapse

Methods inherited from ParserRuleContext

#addChild, #addErrorNode, #addTokenNode, #copyFrom, #enterRule, #exitRule, #getChild, #getChildCount, #getChildren, #getSourceInterval, #getToken, #getTokens, #getTypedRuleContext, #getTypedRuleContexts, #removeLastChild, #to_s

Methods inherited from RuleContext

EMPTY, #accept, #depth, #getChild, #getChildCount, #getChildren, #getPayload, #getRuleContext, #getRuleIndex, #getSourceInterval, #getText, #isEmpty, #toString, #toStringTree, #to_s

Constructor Details

#initialize(parent, invokingStateNumber, rule_index) ⇒ InterpreterRuleContext

Returns a new instance of InterpreterRuleContext.



158
159
160
161
# File 'lib/antlr4/ParserRuleContext.rb', line 158

def initialize(parent, invokingStateNumber, rule_index)
    super(parent, invokingStateNumber)
    @ruleIndex = rule_index
end

Instance Attribute Details

#ruleIndexObject

Returns the value of attribute ruleIndex.



157
158
159
# File 'lib/antlr4/ParserRuleContext.rb', line 157

def ruleIndex
  @ruleIndex
end