Class: Antlr4ruby::PredictionContextCache

Inherits:
Object
  • Object
show all
Defined in:
lib/antlr4ruby/atn/context/prediction_context_cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cacheObject (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

#sizeObject



13
14
15
# File 'lib/antlr4ruby/atn/context/prediction_context_cache.rb', line 13

def size
  cache.length
end