Class: Antlr4ruby::PredictionContextCache
- Inherits:
-
Object
- Object
- Antlr4ruby::PredictionContextCache
- Defined in:
- lib/antlr4ruby/atn/context/prediction_context_cache.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
readonly
Returns the value of attribute cache.
Instance Method Summary collapse
Instance Attribute Details
#cache ⇒ Object (readonly)
Returns the value of attribute cache.
3 4 5 |
# File 'lib/antlr4ruby/atn/context/prediction_context_cache.rb', line 3 def cache @cache end |
Instance Method Details
#add(ctx) ⇒ Object
5 6 7 |
# File 'lib/antlr4ruby/atn/context/prediction_context_cache.rb', line 5 def add(ctx) # todo end |
#get(ctx) ⇒ Object
9 10 11 |
# File 'lib/antlr4ruby/atn/context/prediction_context_cache.rb', line 9 def get(ctx) # todo end |
#size ⇒ Object
13 14 15 |
# File 'lib/antlr4ruby/atn/context/prediction_context_cache.rb', line 13 def size cache.length end |