Class: ProxyErrorListener

Inherits:
ErrorListener show all
Defined in:
lib/antlr4/error/ErrorListener.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delegates) ⇒ ProxyErrorListener

Returns a new instance of ProxyErrorListener.

Raises:

  • (ReferenceError)


79
80
81
82
83
# File 'lib/antlr4/error/ErrorListener.rb', line 79

def initialize(delegates)
    super()
    raise ReferenceError.new("delegates") if delegates.nil? 
    @delegates = delegates
end

Instance Attribute Details

#delegatesObject

Returns the value of attribute delegates.



78
79
80
# File 'lib/antlr4/error/ErrorListener.rb', line 78

def delegates
  @delegates
end

Instance Method Details

#reportAmbiguity(recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs) ⇒ Object



91
92
93
94
95
# File 'lib/antlr4/error/ErrorListener.rb', line 91

def reportAmbiguity(recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs)
    for delegate in self.delegates
        delegate.reportAmbiguity(recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs)
    end
end

#reportAttemptingFullContext(recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs) ⇒ Object



97
98
99
100
101
# File 'lib/antlr4/error/ErrorListener.rb', line 97

def reportAttemptingFullContext(recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs)
    for delegate in self.delegates
        delegate.reportAttemptingFullContext(recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs)
    end
end

#reportContextSensitivity(recognizer, dfa, startIndex, stopIndex, prediction, configs) ⇒ Object



104
105
106
107
108
# File 'lib/antlr4/error/ErrorListener.rb', line 104

def reportContextSensitivity(recognizer, dfa, startIndex, stopIndex, prediction, configs)
    for delegate in self.delegates
        delegate.reportContextSensitivity(recognizer, dfa, startIndex, stopIndex, prediction, configs)
    end
end

#syntaxError(recognizer, offendingSymbol, line, column, msg, e) ⇒ Object



85
86
87
88
89
# File 'lib/antlr4/error/ErrorListener.rb', line 85

def syntaxError(recognizer, offendingSymbol, line, column, msg, e)
    for delegate in self.delegates
        delegate.syntaxError(recognizer, offendingSymbol, line, column, msg, e)
    end
end